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.
This commit is contained in:
a-kenji
2024-09-14 19:00:28 +02:00
parent 924f5ee182
commit 342734073b

View File

@@ -13,7 +13,7 @@ in
files.version.secret = false; files.version.secret = false;
runtimeInputs = [ ]; runtimeInputs = [ ];
script = '' script = ''
echo -n ${lib.versions.majorMinor lib.version} > $out/version echo -n ${lib.versions.majorMinor config.system.stateVersion} > $out/version
''; '';
}; };
} }