diff options
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/common/default.nix | 2 | ||||
| -rw-r--r-- | nixos/common/services.nix | 22 |
2 files changed, 22 insertions, 2 deletions
diff --git a/nixos/common/default.nix b/nixos/common/default.nix index c76dc51..8e14366 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -36,7 +36,7 @@ users.users.wilkuu = { shell = pkgs.zsh; isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. + extraGroups = [ "wheel" "networkmanager" "input" "docker" "adbusers" "libvirtd" ]; # Enable ‘sudo’ for the user. packages = with pkgs; [ tree ]; diff --git a/nixos/common/services.nix b/nixos/common/services.nix index 528363b..d63e547 100644 --- a/nixos/common/services.nix +++ b/nixos/common/services.nix @@ -1,2 +1,22 @@ {config, lib, pkgs, ...}: -{} +{ + + ## VM's + programs.dconf.enable = true; + programs.virt-manager.enable = true; + virtualisation = { + docker.enable = true; + libvirtd = { + enable = true; + qemu = { + swtpm.enable = true; + vhostUserPackages = with pkgs; [ virtiofsd ]; + ovmf.enable = true; + ovmf.packages = [ pkgs.OVMFFull.fd ]; + }; + }; + spiceUSBRedirection.enable = true; + }; + services.spice-vdagentd.enable = true; + +} |
