added nh
This commit is contained in:
parent
b00d03b728
commit
afb7b748bf
3 changed files with 18 additions and 9 deletions
|
@ -2,5 +2,6 @@ _: {
|
|||
imports = [
|
||||
./neovim.nix
|
||||
./fish.nix
|
||||
./nh.nix
|
||||
];
|
||||
}
|
||||
|
|
16
modules/cli/nh.nix
Normal file
16
modules/cli/nh.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, lib, config, callPackage, ... }:
|
||||
with lib; let
|
||||
username = config.modules.other.system.username;
|
||||
cfg = config.modules.programs.nh;
|
||||
in {
|
||||
options.modules.programs.nh.enable = mkEnableOption "nh";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
flake = "/home/vali/repos/nichts";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue