From a353ac79c34b52a0795ab352c91e949dfc9443d3 Mon Sep 17 00:00:00 2001 From: Chris Dombroski Date: Thu, 25 Apr 2024 20:46:12 -0400 Subject: [PATCH] Auto upgrade --- systems/zeus/configuration.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/systems/zeus/configuration.nix b/systems/zeus/configuration.nix index dc4e1b4..4db1cbd 100644 --- a/systems/zeus/configuration.nix +++ b/systems/zeus/configuration.nix @@ -44,7 +44,7 @@ boot.loader.grub.devices = [ "/dev/sda" "/dev/sdb" "/dev/sdc" "/dev/sdd" "/dev/sde" "/dev/sdf" ]; 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" ]; # Pick only one of the below networking options. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. @@ -79,14 +79,14 @@ Kind = "wireguard"; }; wireguardConfig = { - PrivateKeyFile = /etc/nixos/wireguard.priv; + PrivateKeyFile = "/etc/nixos/wireguard.priv"; ListenPort = 51821; }; wireguardPeers = [{ wireguardPeerConfig = { PublicKey = "ZT+n0XONAZ6dkiIJR+2bmTT9y7WTxDNdnZo5S7b8vxE="; AllowedIPs = [ "10.98.0.0/31" ]; - PresharedKeyFile = /etc/nixos/wireguard.psk; + PresharedKeyFile = "/etc/nixos/wireguard.psk"; PersistentKeepalive = 25; Endpoint = "remote.kow.is:51821"; }; @@ -354,6 +354,7 @@ docker-compose wireguard-tools nix-output-monitor + git ]; # 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 . 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; }