nh toogle
This commit is contained in:
parent
29c40709fe
commit
5af5c5fcda
@ -13,6 +13,8 @@
|
||||
|
||||
smayzy.virt.enable = true;
|
||||
|
||||
smayzy.nh.enable = true;
|
||||
|
||||
users.users.smayzy = {
|
||||
isNormalUser = true;
|
||||
description = "smayzy";
|
||||
|
||||
@ -1,9 +1,20 @@
|
||||
{ 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;
|
||||
clean.extraArgs = "--keep 10";
|
||||
flake = "/home/smayzy/nix-config";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user