Files
nixos/home/home.nix
T
Greg Hellings f18d1f357c Make development experience work
Add direnv to default build
Add xonsh-direnv package to overlay and xonsh environment
Add virtualisation options
2022-05-04 13:57:19 -05:00

22 lines
345 B
Nix

name: { pkgs, lib, nixosConfig, ...}:
let
guiImports = if nixosConfig.greg.gnome.enable then
[ ./gui ] else [];
in {
imports = [
./modules
./bash.nix
./direnv.nix
./git.nix
./ssh.nix
./vim.nix
./xonsh.nix
] ++ guiImports;
home.username = name;
home.homeDirectory = if name == "root" then "/root" else "/home/${name}";
}