dotfiles/modules/os/misc/virt-manager.nix
eriedaberrie 9dbe7b42a4 Initial commit
Note: not the actual initial commit.

I swear I will stop repeatedly force pushing to this single commit eventually
ok.
2024-08-21 11:05:56 -07:00

18 lines
327 B
Nix

{ pkgs, config, lib, ... }:
let
cfg = config.my.virt-manager;
in {
options.my.virt-manager = {
enable = lib.mkEnableOption null;
};
config = lib.mkIf cfg.enable {
virtualisation.libvirtd.enable = true;
environment.systemPackages = [ pkgs.virt-manager ];
my.user.extraGroups = [ "libvirtd" ];
};
}