add nh, fix description eza
fix nh
This commit is contained in:
parent
c942a2e87c
commit
0b828b6e65
4 changed files with 62 additions and 35 deletions
26
modules/nixos/cli/nh/default.nix
Normal file
26
modules/nixos/cli/nh/default.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
namespace,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
with lib.${namespace};
|
||||
let
|
||||
cfg = config.${namespace}.cli.nh;
|
||||
in
|
||||
{
|
||||
options.${namespace}.cli.nh = with types; {
|
||||
enable = mkBoolOpt false "Whether or not to use nh.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
clean.extraArgs = "--keep-since 4d --keep 3";
|
||||
flake = "/home/philipp/Documents/nix-config";
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue