24 lines
437 B
Nix
24 lines
437 B
Nix
{ config, lib, pkgs, ...}:
|
|
let
|
|
inherit (lib) mkIf mkOption types;
|
|
in
|
|
{
|
|
options.smayzy.nh.enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "use nh";
|
|
};
|
|
|
|
config = mkIf config.smayzy.nh.enable {
|
|
programs.nh = {
|
|
enable = true;
|
|
clean= {
|
|
enable = true;
|
|
extraArgs = "--keep 10";
|
|
dates = "hourly";
|
|
};
|
|
flake = "/home/smayzy/nix-config";
|
|
};
|
|
};
|
|
}
|