From 82eafc1aba1c2db3db9641318f0c0503bcc99d37 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 25 Dec 2023 08:13:56 +0800 Subject: [PATCH] nixos: set stateVersion by hosts --- nixos/hosts/Aristotle/hardware-configuration.nix | 1 + nixos/profiles/core/nix/nix.nix | 12 ------------ 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/nixos/hosts/Aristotle/hardware-configuration.nix b/nixos/hosts/Aristotle/hardware-configuration.nix index 744ea9f..b9291b6 100644 --- a/nixos/hosts/Aristotle/hardware-configuration.nix +++ b/nixos/hosts/Aristotle/hardware-configuration.nix @@ -18,4 +18,5 @@ boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid"]; boot.kernelModules = ["kvm-intel"]; nixpkgs.hostPlatform = "x86_64-linux"; + system.stateVersion = "23.05"; } diff --git a/nixos/profiles/core/nix/nix.nix b/nixos/profiles/core/nix/nix.nix index 6ff2bbb..d091305 100755 --- a/nixos/profiles/core/nix/nix.nix +++ b/nixos/profiles/core/nix/nix.nix @@ -31,16 +31,4 @@ info.enable = false; nixos.enable = false; }; - - system = { - # 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. It's 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). - - # TLDR: leave it alone - stateVersion = "23.05"; - }; }