feat: manage stateVersion through hostHelper

This commit is contained in:
Ranomier 2025-05-04 20:52:04 +02:00
parent bf19849309
commit 14dfeec55f
5 changed files with 19 additions and 46 deletions

View file

@ -10,5 +10,15 @@ in
modules = [
{networking.hostName = hostname;}
(./hosts/${hostname})
{
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = hostOptions.stateVersion; # Did you read the comment?
}
];
}