From 9cbbf690f7d191437087d3d33d40f31df2575992 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Sun, 13 Dec 2020 06:57:45 +0000 Subject: [PATCH] Add libvirtd --- configuration.nix | 1 - sets/virtualization.nix | 13 ++++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 9554d6c..d46bed5 100644 --- a/configuration.nix +++ b/configuration.nix @@ -41,7 +41,6 @@ enable = true; nssmdns = true; }; - chrony.enable = true; flatpak.enable = true; fwupd.enable = true; kbfs.enable = true; diff --git a/sets/virtualization.nix b/sets/virtualization.nix index eab3fe6..50e4236 100644 --- a/sets/virtualization.nix +++ b/sets/virtualization.nix @@ -7,10 +7,21 @@ enable = true; recommendedSysctlSettings = true; }; + libvirtd = { + enable = true; + qemuOvmf = true; + qemuRunAsRoot = false; + onBoot = "ignore"; + onShutdown = "shutdown"; + }; }; + environment.systemPackages = with pkgs; [ + virtmanager + ]; + users.users = { - artemis.extraGroups = [ "docker" "lxd" ]; + artemis.extraGroups = [ "docker" "lxd" "libvirtd" ]; lxd = { subUidRanges = [{ startUid = 16777216; count = 16777216; } { startUid = config.users.users.artemis.uid; count = 1; }]; subGidRanges = [{ startGid = 16777216; count = 16777216; } { startGid = 100; count = 1; } { startGid = config.users.groups.artemis.gid; count = 1; }];