mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
Improve nixos-rebuild with nix-helper
This commit is contained in:
parent
7adfa40f4d
commit
d5729dc447
7 changed files with 70 additions and 5 deletions
|
|
@ -15,5 +15,6 @@
|
|||
./dm.nix
|
||||
./sound.nix
|
||||
./boot-loader.nix
|
||||
./nix-helper.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
14
modules/system/nix-helper.nix
Normal file
14
modules/system/nix-helper.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue