nixos: 22.05 -> 22.11
This commit is contained in:
parent
52fa97fb2d
commit
50f86d54af
10
README.md
10
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
|
||||
|
@ -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;
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user