flake: fix missing option in module

This commit is contained in:
Adithya 2024-07-05 02:13:53 +05:30
parent 16af6301cc
commit 19bd80282d
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
2 changed files with 14 additions and 10 deletions

View file

@ -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 {

View file

@ -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 {