added home-manager to bastion

This commit is contained in:
Vivian 2022-10-18 17:20:14 +02:00
parent f11f5ecada
commit 2f348356bc
3 changed files with 21 additions and 1 deletions

View file

@ -60,4 +60,8 @@ in {
enable = true; enable = true;
pinentryFlavor = "curses"; pinentryFlavor = "curses";
}; };
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.victor = import ./home.nix;
} }

View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }: {
programs.home-manager.enable = true;
home.username = "victor";
home.homeDirectory = "/home/victor";
home.stateVersion = "22.05";
programs.direnv = {
enable = true;
nix-direnv = { enable = true; };
};
programs.zsh = {
enable = true;
sessionVariables = { DIRENV_LOG_FORMAT = ""; };
};
}

View file

@ -15,12 +15,12 @@ let
./common/generic-vm.nix ./common/generic-vm.nix
]; ];
"local" = [ "local" = [
home-manager.nixosModules.home-manager
hyprland.nixosModules.default hyprland.nixosModules.default
]; ];
}; };
in in
{ hostname, realm, profile ? hostname, type ? "lxc", ... }: [ { hostname, realm, profile ? hostname, type ? "lxc", ... }: [
home-manager.nixosModules.home-manager
mailserver.nixosModules.mailserver mailserver.nixosModules.mailserver
./common ./common
"${./.}/hosts/${realm}/${profile}/configuration.nix" "${./.}/hosts/${realm}/${profile}/configuration.nix"