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,11 +1,13 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let cfg = config.nodeconfig; in {
|
let cfg = config.nodeconfig; in {
|
||||||
options.minimize = lib.mkOption {
|
options.nodeconfig = {
|
||||||
|
minimize = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
description = "Disable non-essential stuff";
|
description = "Disable non-essential stuff";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.minimize {
|
config = lib.mkIf cfg.minimize {
|
||||||
documentation = {
|
documentation = {
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
{ lib, config, ... }:
|
{ lib, config, ... }:
|
||||||
let cfg = config.nodeconfig; in {
|
let cfg = config.nodeconfig; in {
|
||||||
options.nix.auto-gc = lib.mkOption {
|
options.nodeconfig = {
|
||||||
|
nix.auto-gc = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
example = true;
|
example = true;
|
||||||
description = "Enable Automatic Garbage collection of the Nix store";
|
description = "Enable Automatic Garbage collection of the Nix store";
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.nix.auto-gc {
|
config = lib.mkIf cfg.nix.auto-gc {
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
|
|
Loading…
Reference in a new issue