nichts/modules/cli/nh.nix

17 lines
432 B
Nix
Raw Normal View History

2024-05-14 20:33:43 +02:00
{ 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";
};
};
}