Instead of calling the home manager directly in the user's list, we add a command for the user to invoke "hms" and have their environment setup in the way that Greg likes.
25 lines
293 B
Nix
25 lines
293 B
Nix
name: { pkgs, lib, gui, ...}:
|
|
|
|
let
|
|
guiImports = if gui then
|
|
[ ./gui ] else [];
|
|
|
|
in {
|
|
imports = [
|
|
./modules
|
|
./ansible.nix
|
|
./bash.nix
|
|
./direnv.nix
|
|
./git.nix
|
|
./ssh.nix
|
|
./vim.nix
|
|
./xonsh.nix
|
|
] ++ guiImports;
|
|
|
|
|
|
home.stateVersion = "22.05";
|
|
home.packages = [
|
|
pkgs.hms
|
|
];
|
|
}
|