fix system.stateVersion

This commit is contained in:
Jörg Thalheim
2025-02-14 12:13:36 +07:00
parent 0b240baccd
commit e27605d3a0
10 changed files with 35 additions and 29 deletions

View File

@@ -14,5 +14,5 @@
];
nixpkgs.pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
system.stateVersion = config.system.nixos.version;
system.stateVersion = config.system.nixos.release;
}

View File

@@ -11,9 +11,9 @@
# TODO: Instead create a machine by calling the API, this wont break in future tests and is much closer to what the user performs
cat > $out/machines/testmachine/hardware-configuration.nix << EOF
{ lib, ... }: {
{ lib, config, ... }: {
nixpkgs.hostPlatform = "x86_64-linux";
system.stateVersion = lib.version;
system.stateVersion = config.system.nixos.release;
documentation.enable = false;
users.users.root.initialPassword = "fnord23";
boot.loader.grub.devices = lib.mkForce [ "/dev/sda" ];