2022-04-29 10:58:31 -05:00
|
|
|
name: { pkgs, lib, nixosConfig, ...}:
|
2022-04-18 11:38:06 -05:00
|
|
|
|
2022-04-29 10:58:31 -05:00
|
|
|
let
|
|
|
|
|
guiImports = if nixosConfig.greg.gnome.enable then
|
|
|
|
|
[ ./gui ] else [];
|
|
|
|
|
|
|
|
|
|
in {
|
2022-04-18 11:38:06 -05:00
|
|
|
imports = [
|
2022-04-29 10:58:31 -05:00
|
|
|
./modules
|
2022-05-27 13:53:02 -05:00
|
|
|
./ansible.nix
|
2022-04-18 11:38:06 -05:00
|
|
|
./bash.nix
|
2022-05-04 13:52:38 -05:00
|
|
|
./direnv.nix
|
2022-04-18 11:38:06 -05:00
|
|
|
./git.nix
|
2022-04-18 14:01:00 -05:00
|
|
|
./ssh.nix
|
2022-04-29 10:58:31 -05:00
|
|
|
./vim.nix
|
|
|
|
|
./xonsh.nix
|
|
|
|
|
] ++ guiImports;
|
|
|
|
|
|
2022-04-18 11:38:06 -05:00
|
|
|
|
|
|
|
|
home.username = name;
|
|
|
|
|
home.homeDirectory = if name == "root" then "/root" else "/home/${name}";
|
2022-05-23 23:58:40 -05:00
|
|
|
home.stateVersion = "21.11";
|
2022-04-18 11:38:06 -05:00
|
|
|
}
|