update to nixos 24.05

This commit is contained in:
CherryKitten 2024-06-02 14:23:53 +02:00
parent 9f826561fd
commit 736938dfc9
Signed by: sammy
GPG key ID: 98D8F75FB0658276

View file

@ -44,7 +44,7 @@ makeConf() {
networking.domain = "$(hostname -d)"; networking.domain = "$(hostname -d)";
services.openssh.enable = true; services.openssh.enable = true;
security.sudo.wheelNeedsPassword = false; security.sudo.wheelNeedsPassword = false;
system.stateVersion = "23.11"; system.stateVersion = "24.05";
users.users.root.openssh.authorizedKeys.keys = keys; users.users.root.openssh.authorizedKeys.keys = keys;
users.users.sammy = { users.users.sammy = {
isNormalUser = true; isNormalUser = true;
@ -320,7 +320,7 @@ infect() {
# shellcheck disable=SC1090 # shellcheck disable=SC1090
source ~/.nix-profile/etc/profile.d/nix.sh source ~/.nix-profile/etc/profile.d/nix.sh
[[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-23.05" [[ -z "$NIX_CHANNEL" ]] && NIX_CHANNEL="nixos-24.05"
nix-channel --remove nixpkgs nix-channel --remove nixpkgs
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
nix-channel --update nix-channel --update