feat: move home manager nh modules to nixos level.
This commit is contained in:
parent
7eb6e7fb86
commit
bc1e5d6443
3 changed files with 2 additions and 2 deletions
|
@ -21,6 +21,7 @@
|
|||
./additional-hardware
|
||||
./tailscale.nix
|
||||
./sunshine.nix
|
||||
./nh.nix
|
||||
];
|
||||
|
||||
crony.bluetooth.enable = lib.mkDefault true;
|
||||
|
@ -44,4 +45,5 @@
|
|||
crony.additional-hardware.enable = lib.mkDefault true;
|
||||
crony.tailscale.enable = lib.mkDefault true;
|
||||
crony.sunshine.enable = lib.mkDefault true;
|
||||
crony.nh.enable = lib.mkDefault true;
|
||||
}
|
||||
|
|
21
modules/linux/nixos/nh.nix
Normal file
21
modules/linux/nixos/nh.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.nh.enable = lib.mkEnableOption "Enable nh and set it up for automatic cleaning.";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.nh.enable {
|
||||
# Install nh
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
flake = "/home/crony/Repos/nixos";
|
||||
clean = {
|
||||
enable = true;
|
||||
extraArgs = "--keep 5 --keep-since 3d";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue