From a3591db505b6f2e9d1982b09946576c369ab0f8e Mon Sep 17 00:00:00 2001 From: Cy Pokhrel Date: Sat, 23 Nov 2024 14:40:08 -0500 Subject: [PATCH] libvirt and wgnord --- nix/configuration.nix | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/nix/configuration.nix b/nix/configuration.nix index 6e802f2..bb1f21a 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -33,7 +33,7 @@ users.users.yt = { isNormalUser = true; - extraGroups = [ "wheel" ]; + extraGroups = [ "wheel" "libvirtd" ]; shell = pkgs.zsh; packages = with pkgs; [ firefox @@ -87,6 +87,11 @@ pass-wayland htop file + dnsutils + age + compsize + wgnord + wireguard-tools ]; system.stateVersion = "24.05"; @@ -135,23 +140,23 @@ "**/.steam" "**/.rustup" "**/.docker" - "**/.snapshots" + "**/borg" ]; repo = "de3911@de3911.rsync.net:borg/yt"; encryption = { mode = "repokey-blake2"; - passCommand = "cat /run/keys/borg_yt"; + passCommand = "cat /root/keys/borg_yt"; }; environment = { BORG_RSH = "ssh -i /home/yt/.ssh/id_ed25519"; BORG_REMOTE_PATH = "borg1"; }; compression = "auto,zstd"; - startAt = "hourly"; + startAt = "daily"; }; }; services.btrbk.instances.local.settings = { - snapshot_preserve = "14d 52w"; + snapshot_preserve = "14d"; snapshot_preserve_min = "2d"; volume."/" = { target = "/snapshots"; @@ -188,4 +193,10 @@ services.gvfs.enable = true; # thumbnails in thunar services.tumbler.enable =true; + + virtualisation.libvirtd.enable = true; + programs.virt-manager.enable = true; + + networking.wg-quick.interfaces.wgnord.configFile = "/etc/wireguard/wgnord.conf"; + services.resolved.enable = true; }