1
0
Fork 0

nixos: 22.05 -> 22.11

master
dump_stack() 2022-12-17 17:49:00 +00:00
parent 52fa97fb2d
commit 50f86d54af
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
3 changed files with 12 additions and 10 deletions

View File

@ -3,7 +3,7 @@
[Download NixOS installation ISO](https://nixos.org/nixos/download.html) [Download NixOS installation ISO](https://nixos.org/nixos/download.html)
Notes: 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`. 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". 3. GUI settings is optimized for 3840x2160 on 15".
@ -35,8 +35,8 @@ Notes:
cp secrets.nix.example secrets.nix cp secrets.nix.example secrets.nix
nano 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.11 nixos
nix-channel --add https://nixos.org/channels/nixos-22.05-small nixos-small 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 --add https://nixos.org/channels/nixos-unstable unstable
nix-channel --update nix-channel --update
@ -49,7 +49,7 @@ Notes:
Initial password for `user` is `user`. 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.11 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-small nixos-small
sudo nix-channel --add https://nixos.org/channels/nixos-unstable unstable sudo nix-channel --add https://nixos.org/channels/nixos-unstable unstable
sudo nix-channel --update sudo nix-channel --update

View File

@ -1,5 +1,5 @@
# nix-channel --add https://nixos.org/channels/nixos-22.05 nixos # nix-channel --add https://nixos.org/channels/nixos-22.11 nixos
# nix-channel --add https://nixos.org/channels/nixos-22.05-small nixos-small # 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 --add https://nixos.org/channels/nixos-unstable unstable
# nix-channel --update # nix-channel --update
# #
@ -22,7 +22,7 @@ in {
./local.nix ./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 boot.kernelParams = [ "nouveau.modeset=0" ]; # comment out in case of nvidia
time.timeZone = "UTC"; time.timeZone = "UTC";
@ -66,7 +66,7 @@ in {
system.stateVersion = "20.09"; system.stateVersion = "20.09";
nix = { nix = {
trustedUsers = [ "root" "user" ]; settings.trusted-users = [ "root" "user" ];
optimise.automatic = true; optimise.automatic = true;
gc = { gc = {
automatic = true; automatic = true;

View File

@ -2,7 +2,7 @@
let let
home-manager = builtins.fetchTarball { 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 { in {
imports = [ "${home-manager}/nixos" ]; imports = [ "${home-manager}/nixos" ];
@ -10,6 +10,7 @@ in {
home-manager.useUserPackages = true; home-manager.useUserPackages = true;
home-manager.users.root = { home-manager.users.root = {
home.stateVersion = "22.11";
programs = { programs = {
zsh = { zsh = {
enable = true; enable = true;
@ -24,6 +25,7 @@ in {
}; };
home-manager.users.user = { home-manager.users.user = {
home.stateVersion = "22.11";
services.dunst = { services.dunst = {
enable = true; enable = true;
settings = { settings = {