Auto upgrade
This commit is contained in:
parent
476a143db5
commit
a353ac79c3
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue