Improve nixos-rebuild with nix-helper

This commit is contained in:
SebastianStork 2024-03-18 14:09:13 +01:00
parent 7adfa40f4d
commit d5729dc447
7 changed files with 70 additions and 5 deletions

View file

@ -15,5 +15,6 @@
./dm.nix
./sound.nix
./boot-loader.nix
./nix-helper.nix
];
}

View file

@ -0,0 +1,14 @@
{
inputs,
config,
lib,
...
}: {
imports = [inputs.nh.nixosModules.default];
options.myConfig.nix-helper.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.nix-helper.enable {
nh.enable = true;
};
}