nh toogle
This commit is contained in:
parent
29c40709fe
commit
5af5c5fcda
@ -13,6 +13,8 @@
|
|||||||
|
|
||||||
smayzy.virt.enable = true;
|
smayzy.virt.enable = true;
|
||||||
|
|
||||||
|
smayzy.nh.enable = true;
|
||||||
|
|
||||||
users.users.smayzy = {
|
users.users.smayzy = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
description = "smayzy";
|
description = "smayzy";
|
||||||
|
|||||||
@ -1,9 +1,20 @@
|
|||||||
{ config, lib, pkgs, ...}:
|
{ config, lib, pkgs, ...}:
|
||||||
|
let
|
||||||
|
inherit (lib) mkIf mkOption types;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.nh = {
|
options.smayzy.nh.enable = mkOption {
|
||||||
enable = true;
|
type = types.bool;
|
||||||
clean.enable = true;
|
default = false;
|
||||||
clean.extraArgs = "--keep 10";
|
description = "use nh";
|
||||||
flake = "/home/smayzy/nix-config";
|
};
|
||||||
|
|
||||||
|
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