Move rebuild aliases to the system level

This commit is contained in:
SebastianStork 2024-04-29 20:58:31 +02:00
parent 2a71c29fd5
commit ee6393aa18
7 changed files with 23 additions and 33 deletions

View file

@ -0,0 +1,20 @@
{
config,
lib,
...
}: {
options.myConfig.nix-helper.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.nix-helper.enable {
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";
};
};
}