Add libvirt and virt-manager

This commit is contained in:
Simon Bruder 2020-09-12 20:54:10 +02:00
parent 20ef95691b
commit 8b32cc4846
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F
3 changed files with 9 additions and 0 deletions

View file

@ -5,6 +5,7 @@
[ [
./hardware-configuration.nix ./hardware-configuration.nix
../../modules/restic.nix ../../modules/restic.nix
(import ../../modules/libvirt.nix { inherit pkgs; gui = true; })
#../../modules/texlive.nix #../../modules/texlive.nix
../../profiles/base.nix ../../profiles/base.nix
../../profiles/dev.nix ../../profiles/dev.nix

7
modules/libvirt.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, gui ? false, ... }:
{
virtualisation.libvirtd.enable = true;
environment.systemPackages = if gui then [ pkgs.virt-manager ] else [];
}

View file

@ -14,6 +14,7 @@ in
"adbusers" "adbusers"
"dialout" "dialout"
"docker" "docker"
"libvirtd"
"lp" "lp"
"networkmanager" "networkmanager"
"wheel" "wheel"