mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2024-11-05 16:33:12 +00:00
system.stateVersion: default or config.selfprivacy.stateVersion
This commit is contained in:
parent
a185dd1e3e
commit
5bd15a768a
|
@ -78,7 +78,9 @@
|
|||
"# Completely remove remnants of NIXOS_LUSTRATE."
|
||||
"R! /old-root"
|
||||
];
|
||||
system.stateVersion = config.selfprivacy.stateVersion;
|
||||
system.stateVersion =
|
||||
lib.mkIf (config.selfprivacy.stateVersion != null)
|
||||
config.selfprivacy.stateVersion;
|
||||
system.autoUpgrade = {
|
||||
enable = config.selfprivacy.autoUpgrade.enable;
|
||||
allowReboot = config.selfprivacy.autoUpgrade.allowReboot;
|
||||
|
|
|
@ -36,7 +36,8 @@ with lib;
|
|||
};
|
||||
stateVersion = mkOption {
|
||||
description = "State version of the server";
|
||||
type = types.str;
|
||||
type = types.nullOr types.str;
|
||||
default = null;
|
||||
};
|
||||
########################
|
||||
# Server admin options #
|
||||
|
|
Loading…
Reference in a new issue