move system.stateVersion back to userdata

This commit is contained in:
Alexander Tomokhov 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."
"R! /old-root"
];
system.stateVersion = config.selfprivacy.stateVersion;
system.autoUpgrade = {
enable = config.selfprivacy.autoUpgrade.enable;
allowReboot = config.selfprivacy.autoUpgrade.allowReboot;

View file

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