flake: fix missing option in module
This commit is contained in:
parent
16af6301cc
commit
19bd80282d
2 changed files with 14 additions and 10 deletions
|
@ -1,10 +1,12 @@
|
|||
{ lib, config, ... }:
|
||||
let cfg = config.nodeconfig; in {
|
||||
options.minimize = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Disable non-essential stuff";
|
||||
options.nodeconfig = {
|
||||
minimize = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Disable non-essential stuff";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.minimize {
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
{ lib, config, ... }:
|
||||
let cfg = config.nodeconfig; in {
|
||||
options.nix.auto-gc = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Enable Automatic Garbage collection of the Nix store";
|
||||
options.nodeconfig = {
|
||||
nix.auto-gc = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
example = true;
|
||||
description = "Enable Automatic Garbage collection of the Nix store";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.nix.auto-gc {
|
||||
|
|
Loading…
Reference in a new issue