From 8e2670548d77a5115e702ec0b3526e2b1baadb86 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sat, 26 Dec 2020 15:39:41 +0000 Subject: [PATCH] porcorosso: enable lxd --- ops/nixos/porcorosso/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ops/nixos/porcorosso/default.nix b/ops/nixos/porcorosso/default.nix index b2cd710c0b..29a67689df 100644 --- a/ops/nixos/porcorosso/default.nix +++ b/ops/nixos/porcorosso/default.nix @@ -83,6 +83,17 @@ in { dockerCompat = true; }; + # Enable LXD + virtualisation.lxd = { + enable = true; + zfsSupport = true; + recommendedSysctlSettings = true; + }; + systemd.services.lxd.serviceConfig.path = lib.mkAfter (with pkgs; [ + iptables + ebtables + ]); + # Enable libvirtd. virtualisation.libvirtd = { enable = true;