Replace shell aliases with justfile recipes for managing nix commands

This commit is contained in:
SebastianStork 2024-07-15 17:28:58 +02:00
parent 8d8c006e99
commit ad7ae417b9
4 changed files with 30 additions and 13 deletions

View file

@ -5,16 +5,5 @@
config = lib.mkIf config.myConfig.nix-helper.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";
};
};
}