From 50f86d54afe2b40cf7b630bfe1c5459de4532f81 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sat, 17 Dec 2022 17:49:00 +0000 Subject: [PATCH] nixos: 22.05 -> 22.11 --- README.md | 10 +++++----- configuration.nix | 8 ++++---- home-manager.nix | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index a12749a..cfcae34 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [Download NixOS installation ISO](https://nixos.org/nixos/download.html) Notes: -1. I assume that latest **stable** (e.g. 22.05) ISO will be used for installation. +1. I assume that latest **stable** (e.g. 22.11) ISO will be used for installation. 2. Default network configuration is VPN-only, so if you don't have plans to use it you need to change iptables rules (remove `iptables -P OUTPUT DROP` from `networking.nix`) and remove `services.openvpn.servers.vpn` from `networking.nix`. 3. GUI settings is optimized for 3840x2160 on 15". @@ -35,8 +35,8 @@ Notes: cp secrets.nix.example secrets.nix nano secrets.nix - nix-channel --add https://nixos.org/channels/nixos-22.05 nixos - nix-channel --add https://nixos.org/channels/nixos-22.05-small nixos-small + nix-channel --add https://nixos.org/channels/nixos-22.11 nixos + nix-channel --add https://nixos.org/channels/nixos-22.11-small nixos-small nix-channel --add https://nixos.org/channels/nixos-unstable unstable nix-channel --update @@ -49,7 +49,7 @@ Notes: Initial password for `user` is `user`. - sudo nix-channel --add https://nixos.org/channels/nixos-22.05 nixos - sudo nix-channel --add https://nixos.org/channels/nixos-22.05-small nixos-small + sudo nix-channel --add https://nixos.org/channels/nixos-22.11 nixos + sudo nix-channel --add https://nixos.org/channels/nixos-22.11-small nixos-small sudo nix-channel --add https://nixos.org/channels/nixos-unstable unstable sudo nix-channel --update diff --git a/configuration.nix b/configuration.nix index afea5ad..07cfaa1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,5 +1,5 @@ -# nix-channel --add https://nixos.org/channels/nixos-22.05 nixos -# nix-channel --add https://nixos.org/channels/nixos-22.05-small nixos-small +# nix-channel --add https://nixos.org/channels/nixos-22.11 nixos +# nix-channel --add https://nixos.org/channels/nixos-22.11-small nixos-small # nix-channel --add https://nixos.org/channels/nixos-unstable unstable # nix-channel --update # @@ -22,7 +22,7 @@ in { ./local.nix ]; - boot.kernelPackages = nixos-small.linuxPackages_latest; + boot.kernelPackages = nixos-small.linuxPackages_6_0; boot.kernelParams = [ "nouveau.modeset=0" ]; # comment out in case of nvidia time.timeZone = "UTC"; @@ -66,7 +66,7 @@ in { system.stateVersion = "20.09"; nix = { - trustedUsers = [ "root" "user" ]; + settings.trusted-users = [ "root" "user" ]; optimise.automatic = true; gc = { automatic = true; diff --git a/home-manager.nix b/home-manager.nix index fb9b2cb..79fc34d 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -2,7 +2,7 @@ let home-manager = builtins.fetchTarball { - url = "https://github.com/nix-community/home-manager/archive/release-22.05.tar.gz"; + url = "https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz"; }; in { imports = [ "${home-manager}/nixos" ]; @@ -10,6 +10,7 @@ in { home-manager.useUserPackages = true; home-manager.users.root = { + home.stateVersion = "22.11"; programs = { zsh = { enable = true; @@ -24,6 +25,7 @@ in { }; home-manager.users.user = { + home.stateVersion = "22.11"; services.dunst = { enable = true; settings = {