disable state-version in right place

This commit is contained in:
Jörg Thalheim
2025-08-31 15:35:55 +02:00
parent 0b1c12d2e5
commit a0c27194a6
3 changed files with 3 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
lib.mkIf config.clan.core.enableRecommendedDefaults { lib.mkIf config.clan.core.enableRecommendedDefaults {
# Enable automatic state-version generation. # Enable automatic state-version generation.
clan.core.settings.state-version.enable = true; clan.core.settings.state-version.enable = lib.mkDefault true;
# Use systemd during boot as well except: # Use systemd during boot as well except:
# - systems with raids as this currently require manual configuration: https://github.com/NixOS/nixpkgs/issues/210210 # - systems with raids as this currently require manual configuration: https://github.com/NixOS/nixpkgs/issues/210210

View File

@@ -14,6 +14,8 @@ let
self.nixosModules.installer self.nixosModules.installer
]; ];
# We don't need state-version in a live installer, we can just set nixos.release directly
clan.core.settings.state-version.enable = false;
system.stateVersion = config.system.nixos.release; system.stateVersion = config.system.nixos.release;
nixpkgs.pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux; nixpkgs.pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;

View File

@@ -10,9 +10,6 @@
clan-core.nixosModules.installer clan-core.nixosModules.installer
]; ];
# We don't need state-version in a live installer
clan.core.settings.state-version.enable = false;
clan.core.deployment.requireExplicitUpdate = true; clan.core.deployment.requireExplicitUpdate = true;
nixpkgs.pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; nixpkgs.pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;