From 28baf322ced92c83e25d61a64c4841d39c6bf8c9 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 22 Jan 2026 15:57:12 +0900 Subject: [PATCH] hosts/various: formatting, add consistent warnings to `stateVersion` --- hosts/bakke/configuration.nix | 2 ++ hosts/bekkalokk/configuration.nix | 2 +- hosts/bicep/configuration.nix | 5 +---- hosts/bikkje/configuration.nix | 8 +++++--- hosts/brzeczyszczykiewicz/configuration.nix | 13 +++---------- hosts/georg/configuration.nix | 17 +++-------------- hosts/gluttony/configuration.nix | 4 +++- hosts/ildkule/configuration.nix | 9 +++------ hosts/kommode/configuration.nix | 2 ++ hosts/lupine/configuration.nix | 2 +- hosts/shark/configuration.nix | 13 +++---------- hosts/skrott/configuration.nix | 6 ++++-- hosts/temmie/configuration.nix | 12 +++--------- hosts/ustetind/configuration.nix | 2 ++ hosts/wenche/configuration.nix | 4 +++- 15 files changed, 39 insertions(+), 62 deletions(-) diff --git a/hosts/bakke/configuration.nix b/hosts/bakke/configuration.nix index 3554fdf..5805a43 100644 --- a/hosts/bakke/configuration.nix +++ b/hosts/bakke/configuration.nix @@ -17,5 +17,7 @@ address = with values.hosts.bakke; [ (ipv4 + "/25") (ipv6 + "/64") ]; }; + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "24.05"; } diff --git a/hosts/bekkalokk/configuration.nix b/hosts/bekkalokk/configuration.nix index 684d6af..4fe7968 100644 --- a/hosts/bekkalokk/configuration.nix +++ b/hosts/bekkalokk/configuration.nix @@ -31,7 +31,7 @@ services.btrfs.autoScrub.enable = true; - # Do not change, even during upgrades. + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "22.11"; } diff --git a/hosts/bicep/configuration.nix b/hosts/bicep/configuration.nix index fccf239..2a6223d 100644 --- a/hosts/bicep/configuration.nix +++ b/hosts/bicep/configuration.nix @@ -37,10 +37,7 @@ # we are a vm now services.qemuGuest.enable = true; - # Enable the OpenSSH daemon. - services.openssh.enable = true; - - # Do not change, even during upgrades. + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "22.11"; } diff --git a/hosts/bikkje/configuration.nix b/hosts/bikkje/configuration.nix index 2f021ce..3c98f79 100644 --- a/hosts/bikkje/configuration.nix +++ b/hosts/bikkje/configuration.nix @@ -1,6 +1,6 @@ { config, pkgs, values, ... }: { - networking.nat = { + networking.nat = { enable = true; internalInterfaces = ["ve-+"]; externalInterface = "ens3"; @@ -37,9 +37,11 @@ useHostResolvConf = mkForce false; }; - system.stateVersion = "23.11"; services.resolved.enable = true; + + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "23.11"; }; }; - }; diff --git a/hosts/brzeczyszczykiewicz/configuration.nix b/hosts/brzeczyszczykiewicz/configuration.nix index d5d443a..43c1f9f 100644 --- a/hosts/brzeczyszczykiewicz/configuration.nix +++ b/hosts/brzeczyszczykiewicz/configuration.nix @@ -15,14 +15,7 @@ fonts.fontconfig.enable = true; - # List services that you want to enable: - - # 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). - system.stateVersion = "23.05"; # Did you read the comment? - + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "23.05"; } diff --git a/hosts/georg/configuration.nix b/hosts/georg/configuration.nix index e4cdac1..405f900 100644 --- a/hosts/georg/configuration.nix +++ b/hosts/georg/configuration.nix @@ -13,10 +13,6 @@ address = with values.hosts.georg; [ (ipv4 + "/25") (ipv6 + "/64") ]; }; - # List services that you want to enable: - - - services.spotifyd = { enable = true; settings.global = { @@ -32,16 +28,9 @@ 5353 # spotifyd is its own mDNS service wtf ]; - fonts.fontconfig.enable = true; - - # 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). - system.stateVersion = "23.05"; # Did you read the comment? - + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "23.05"; } diff --git a/hosts/gluttony/configuration.nix b/hosts/gluttony/configuration.nix index d907567..9786976 100644 --- a/hosts/gluttony/configuration.nix +++ b/hosts/gluttony/configuration.nix @@ -45,5 +45,7 @@ }; }; - system.stateVersion = "25.11"; # Don't change unless you know what you are doing. + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "25.11"; } diff --git a/hosts/ildkule/configuration.nix b/hosts/ildkule/configuration.nix index b059459..0db7672 100644 --- a/hosts/ildkule/configuration.nix +++ b/hosts/ildkule/configuration.nix @@ -43,13 +43,10 @@ }; }; - # List packages installed in system profile - environment.systemPackages = with pkgs; [ - ]; - # No devices with SMART services.smartd.enable = false; - system.stateVersion = "23.11"; # Did you read the comment? - + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "23.11"; } diff --git a/hosts/kommode/configuration.nix b/hosts/kommode/configuration.nix index 94ef917..7ce665e 100644 --- a/hosts/kommode/configuration.nix +++ b/hosts/kommode/configuration.nix @@ -21,5 +21,7 @@ services.btrfs.autoScrub.enable = true; + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "24.11"; } diff --git a/hosts/lupine/configuration.nix b/hosts/lupine/configuration.nix index 49d5e24..81cbefa 100644 --- a/hosts/lupine/configuration.nix +++ b/hosts/lupine/configuration.nix @@ -25,7 +25,7 @@ # There are no smart devices services.smartd.enable = false; - # Do not change, even during upgrades. + # Don't change (even during upgrades) unless you know what you are doing. # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "25.05"; } diff --git a/hosts/shark/configuration.nix b/hosts/shark/configuration.nix index 5d54974..e951179 100644 --- a/hosts/shark/configuration.nix +++ b/hosts/shark/configuration.nix @@ -16,14 +16,7 @@ address = with values.hosts.shark; [ (ipv4 + "/25") (ipv6 + "/64") ]; }; - # List services that you want to enable: - - # 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). - system.stateVersion = "23.05"; # Did you read the comment? - + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "23.05"; } diff --git a/hosts/skrott/configuration.nix b/hosts/skrott/configuration.nix index 236ef32..ca9435b 100644 --- a/hosts/skrott/configuration.nix +++ b/hosts/skrott/configuration.nix @@ -22,8 +22,6 @@ # TODO: can we reduce further? - system.stateVersion = "25.05"; - sops.defaultSopsFile = fp /secrets/skrott/skrott.yaml; sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; sops.age.keyFile = "/var/lib/sops-nix/key.txt"; @@ -71,4 +69,8 @@ wantedBy = [ "getty.target" ]; # to start at boot serviceConfig.Restart = "always"; # restart when session is closed }; + + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "25.05"; } diff --git a/hosts/temmie/configuration.nix b/hosts/temmie/configuration.nix index d3f4fda..f347879 100644 --- a/hosts/temmie/configuration.nix +++ b/hosts/temmie/configuration.nix @@ -18,13 +18,7 @@ address = with values.hosts.temmie; [ (ipv4 + "/25") (ipv6 + "/64") ]; }; - # List services that you want to enable: - - # 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). - system.stateVersion = "25.11"; # Did you read the comment? + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "25.11"; } diff --git a/hosts/ustetind/configuration.nix b/hosts/ustetind/configuration.nix index be74d4a..23dbfb3 100644 --- a/hosts/ustetind/configuration.nix +++ b/hosts/ustetind/configuration.nix @@ -39,5 +39,7 @@ }; }; + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion system.stateVersion = "24.11"; } diff --git a/hosts/wenche/configuration.nix b/hosts/wenche/configuration.nix index 43a4afc..614b187 100644 --- a/hosts/wenche/configuration.nix +++ b/hosts/wenche/configuration.nix @@ -35,5 +35,7 @@ package = config.boot.kernelPackages.nvidiaPackages.production; }; - system.stateVersion = "24.11"; # Did you read the comment? + # Don't change (even during upgrades) unless you know what you are doing. + # See https://search.nixos.org/options?show=system.stateVersion + system.stateVersion = "24.11"; }