diff --git a/dev/option-doc.nix b/dev/option-doc.nix index 82e0530..96edc0a 100644 --- a/dev/option-doc.nix +++ b/dev/option-doc.nix @@ -7,11 +7,21 @@ }: let eval = lib.evalModules { - modules = modules ++ [{ _module.check = false; }]; + modules = modules ++ [{ + options.system.nixos.release = lib.mkOption { + type = lib.types.str; + default = lib.trivial.release; + readOnly = true; + }; + + config = { + _module.check = false; + }; + }]; }; doc = nixosOptionsDoc { - options = lib.filterAttrs (n: _: n != "_module") eval.options; + options = lib.filterAttrs (n: lib.const (!(lib.elem n [ "_module" "system" ]))) eval.options; documentType = "none"; revision = version; }; diff --git a/modules/home-manager/globals.nix b/modules/home-manager/globals.nix index 1c9b1f8..0b627fb 100644 --- a/modules/home-manager/globals.nix +++ b/modules/home-manager/globals.nix @@ -17,6 +17,7 @@ sources = lib.mkOption { type = lib.types.lazyAttrsOf lib.types.raw; default = defaultSources; + defaultText = "{ ... }"; # HACK! # without this, overriding one source will delete all others. -@getchoo apply = lib.recursiveUpdate defaultSources; diff --git a/modules/nixos/globals.nix b/modules/nixos/globals.nix index 1c9b1f8..0b627fb 100644 --- a/modules/nixos/globals.nix +++ b/modules/nixos/globals.nix @@ -17,6 +17,7 @@ sources = lib.mkOption { type = lib.types.lazyAttrsOf lib.types.raw; default = defaultSources; + defaultText = "{ ... }"; # HACK! # without this, overriding one source will delete all others. -@getchoo apply = lib.recursiveUpdate defaultSources;