diff options
author | David Arnold <dgx.arnold@gmail.com> | 2021-08-03 17:12:03 -0500 |
---|---|---|
committer | David Arnold <dgx.arnold@gmail.com> | 2021-08-03 18:28:14 -0500 |
commit | 9e42d02047fe1153555f8c81039cb48135311e6d (patch) | |
tree | 4df73cd4c11afd55922f34e2b8132d99dd480b19 /lib/modules.nix | |
parent | 2af2d3146d79866ae65ca1883527daa010669b07 (diff) |
lib/modules: add mkImageMediaOverride
so the underlaying use case of the preceding commit is so generic, that we gain a lot in reasoning to give it an appropriate name. As the comment states: image media needs to override host config short of mkForce
Diffstat (limited to 'lib/modules.nix')
-rw-r--r-- | lib/modules.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/modules.nix b/lib/modules.nix index ab2bc4f7f8e2c..b124ea000a2e7 100644 --- a/lib/modules.nix +++ b/lib/modules.nix @@ -710,6 +710,7 @@ rec { mkOptionDefault = mkOverride 1500; # priority of option defaults mkDefault = mkOverride 1000; # used in config sections of non-user modules to set a default + mkImageMediaOverride = mkOverride 60; # image media profiles can be derived by inclusion into host config, hence needing to override host config, but do allow user to mkForce mkForce = mkOverride 50; mkVMOverride = mkOverride 10; # used by ‘nixos-rebuild build-vm’ |