nixos-configs/modules/virtualisation.nix
2022-09-19 22:48:46 +02:00

14 lines
299 B
Nix

{ config, lib, pkgs, ... }:
{
virtualisation = {
libvirtd.enable = true;
spiceUSBRedirection.enable = true;
docker.enable = true;
};
users.users.froidmpa.extraGroups = [ "docker" "libvirtd" ];
environment.systemPackages = with pkgs; [
docker-compose
virt-manager
];
}