Include env variable and aliases in nh configuration

This commit is contained in:
SebastianStork 2024-05-29 16:57:25 +02:00
parent 10bb7b5c31
commit 7c105b7d33
4 changed files with 12 additions and 16 deletions

View file

@ -9,8 +9,20 @@ in
};
config = lib.mkIf cfg.enable {
environment.sessionVariables.FLAKE = "/home/seb/Projects/nixos/my-config";
programs.nh.enable = true;
environment.shellAliases =
let
rebuild = "sudo -v && nh os";
in
{
nrs = "${rebuild} switch";
nrt = "${rebuild} test";
nrb = "${rebuild} boot";
nrrb = "nrb && reboot";
};
programs.nh.clean = lib.mkIf cfg.auto-gc.enable {
enable = true;
dates = "daily";