mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-08 17:11:02 +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."
|
"# Completely remove remnants of NIXOS_LUSTRATE."
|
||||||
"R! /old-root"
|
"R! /old-root"
|
||||||
];
|
];
|
||||||
system.stateVersion = config.selfprivacy.stateVersion;
|
system.stateVersion =
|
||||||
|
lib.mkIf (config.selfprivacy.stateVersion != null)
|
||||||
|
config.selfprivacy.stateVersion;
|
||||||
system.autoUpgrade = {
|
system.autoUpgrade = {
|
||||||
enable = config.selfprivacy.autoUpgrade.enable;
|
enable = config.selfprivacy.autoUpgrade.enable;
|
||||||
allowReboot = config.selfprivacy.autoUpgrade.allowReboot;
|
allowReboot = config.selfprivacy.autoUpgrade.allowReboot;
|
||||||
|
|
|
@ -36,7 +36,8 @@ with lib;
|
||||||
};
|
};
|
||||||
stateVersion = mkOption {
|
stateVersion = mkOption {
|
||||||
description = "State version of the server";
|
description = "State version of the server";
|
||||||
type = types.str;
|
type = types.nullOr types.str;
|
||||||
|
default = null;
|
||||||
};
|
};
|
||||||
########################
|
########################
|
||||||
# Server admin options #
|
# Server admin options #
|
||||||
|
|
Loading…
Reference in a new issue