Auto upgrade

This commit is contained in:
Chris Dombroski 2024-04-25 20:46:12 -04:00
parent 32e32299c6
commit 7c4ebce551

View file

@ -44,7 +44,7 @@
boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" "/dev/sdc" "/dev/sdd" "/dev/sde" "/dev/sdf" ]; boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" "/dev/sdc" "/dev/sdd" "/dev/sde" "/dev/sdf" ];
networking.hostName = "zeus"; # Define your hostname. networking.hostName = "zeus"; # Define your hostname.
networking.hostId = (builtins.substring 0 8 (builtins.readFile "/etc/machine-id")); networking.hostId = "9e95b576";
boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# Pick only one of the below networking options. # Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -79,14 +79,14 @@
Kind = "wireguard"; Kind = "wireguard";
}; };
wireguardConfig = { wireguardConfig = {
PrivateKeyFile = /etc/nixos/wireguard.priv; PrivateKeyFile = "/etc/nixos/wireguard.priv";
ListenPort = 51821; ListenPort = 51821;
}; };
wireguardPeers = [{ wireguardPeers = [{
wireguardPeerConfig = { wireguardPeerConfig = {
PublicKey = "ZT+n0XONAZ6dkiIJR+2bmTT9y7WTxDNdnZo5S7b8vxE="; PublicKey = "ZT+n0XONAZ6dkiIJR+2bmTT9y7WTxDNdnZo5S7b8vxE=";
AllowedIPs = [ "10.98.0.0/31" ]; AllowedIPs = [ "10.98.0.0/31" ];
PresharedKeyFile = /etc/nixos/wireguard.psk; PresharedKeyFile = "/etc/nixos/wireguard.psk";
PersistentKeepalive = 25; PersistentKeepalive = 25;
Endpoint = "remote.kow.is:51821"; Endpoint = "remote.kow.is:51821";
}; };
@ -354,6 +354,7 @@
docker-compose docker-compose
wireguard-tools wireguard-tools
nix-output-monitor nix-output-monitor
git
]; ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
@ -417,6 +418,10 @@
# #
# For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion . # For more information, see `man configuration.nix` or https://nixos.org/manual/nixos/stable/options#opt-system.stateVersion .
system.stateVersion = "23.11"; # Did you read the comment? system.stateVersion = "23.11"; # Did you read the comment?
system.autoUpgrade = {
enable = true;
flake = "git+https://git.icanttype.org/cdombroski/nix-configs.git";
};
zramSwap.enable = true; zramSwap.enable = true;
} }