From 342734073bd0dbf442f39b6bceff5975cfe27651 Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sat, 14 Sep 2024 19:00:28 +0200 Subject: [PATCH] clanModules/state-version: initalize with currently set `stateVersion` The `state-version` module will now initialize the `stateVersion` from the currently set version. This makes migrating to the `state-version` module seamless. --- clanModules/state-version/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clanModules/state-version/default.nix b/clanModules/state-version/default.nix index ef84cb6a7..2c3010c37 100644 --- a/clanModules/state-version/default.nix +++ b/clanModules/state-version/default.nix @@ -13,7 +13,7 @@ in files.version.secret = false; runtimeInputs = [ ]; script = '' - echo -n ${lib.versions.majorMinor lib.version} > $out/version + echo -n ${lib.versions.majorMinor config.system.stateVersion} > $out/version ''; }; }