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:
@@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user