mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
20 lines
458 B
Nix
20 lines
458 B
Nix
{
|
|
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";
|
|
};
|
|
};
|
|
}
|