hive: Use stateVersion defined in the nodes metadata

This commit is contained in:
Tom Hubrecht 2023-07-23 21:46:20 +02:00
parent c2616ce4f5
commit 8cecf0eae8
4 changed files with 3 additions and 9 deletions

View file

@ -19,6 +19,9 @@ let
# Set NIX_PATH to the patched version of nixpkgs
nix.nixPath = [ "nixpkgs=${mkNixpkgs node}" ];
# Use the stateVersion declared in the metadata
system = { inherit (metadata.nodes.${node}) stateVersion; };
};
mkNixpkgs = node:

View file

@ -3,5 +3,4 @@
{
dgn-dns.enable = true;
system.stateVersion = "23.05"; # Did you read the comment?
}

View file

@ -5,5 +5,4 @@
{ config, pkgs, ... }:
{
system.stateVersion = "23.05"; # Did you read the comment?
}

View file

@ -13,12 +13,5 @@
networking.hostName = name;
# 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 = "22.11"; # Did you read the comment?
}