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,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 = {

View file

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