From 5aba990f95bd4654422c258a01ff5ae2a0554f9b Mon Sep 17 00:00:00 2001 From: Alexander Tomokhov Date: Fri, 22 Dec 2023 19:33:24 +0400 Subject: [PATCH] move system.stateVersion back to userdata --- configuration.nix | 1 + selfprivacy-module.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/configuration.nix b/configuration.nix index 6657d8a..fc8365f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -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; diff --git a/selfprivacy-module.nix b/selfprivacy-module.nix index a7d1c36..268153a 100644 --- a/selfprivacy-module.nix +++ b/selfprivacy-module.nix @@ -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 # ########################