Add libvirtd

This commit is contained in:
Artemis Tosini 2020-12-13 06:57:45 +00:00
parent c4e893ec6d
commit 9cbbf690f7
Signed by: artemist
GPG key ID: ADFFE553DCBB831E
2 changed files with 12 additions and 2 deletions

View file

@ -41,7 +41,6 @@
enable = true;
nssmdns = true;
};
chrony.enable = true;
flatpak.enable = true;
fwupd.enable = true;
kbfs.enable = true;

View file

@ -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; }];