From 3eaa849f81b1be805eb7ec54ebb22378269524ba Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 11 May 2023 11:27:15 +0100 Subject: [PATCH] cofractal-ams01: tweak networkd RequiredForOnline, add libvirtd --- ops/nixos/cofractal-ams01/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ops/nixos/cofractal-ams01/default.nix b/ops/nixos/cofractal-ams01/default.nix index 7bb283b0f2..f5e2be2671 100644 --- a/ops/nixos/cofractal-ams01/default.nix +++ b/ops/nixos/cofractal-ams01/default.nix @@ -152,6 +152,10 @@ in 4001 # IPFS ]; }; + systemd.network."40-bond0".linkConfig.RequiredForOnline = "yes"; + systemd.network."40-enp45s0f0".linkConfig.RequiredForOnline = "no"; + systemd.network."40-enp45s0f1".linkConfig.RequiredForOnline = "no"; + systemd.network."50-tailscale".linkConfig.RequiredForOnline = "no"; my.ip.tailscale = "100.94.187.27"; my.ip.tailscale6 = "fd7a:115c:a1e0:ab12:4843:cd96:625e:bb1b"; my.coredns.bind = [ "bond0" "tailscale0" "127.0.0.1" "::1" ]; @@ -257,5 +261,11 @@ in }; }; + virtualisation.libvirtd = { + enable = true; + }; + security.polkit.enable = true; + users.users.lukegb.extraGroups = lib.mkAfter [ "libvirtd" ]; + system.stateVersion = "23.05"; }