move system.stateVersion back to userdata

pull/55/head
Alexander 2023-12-22 19:33:24 +04:00
parent 05fe40ac21
commit 5aba990f95
2 changed files with 5 additions and 0 deletions

View File

@ -78,6 +78,7 @@
"# Completely remove remnants of NIXOS_LUSTRATE." "# Completely remove remnants of NIXOS_LUSTRATE."
"R! /old-root" "R! /old-root"
]; ];
system.stateVersion = 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;

View File

@ -34,6 +34,10 @@ with lib;
type = types.nullOr types.bool; type = types.nullOr types.bool;
}; };
}; };
stateVersion = mkOption {
description = "State version of the server";
type = types.str;
};
######################## ########################
# Server admin options # # Server admin options #
######################## ########################