1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00
github.com-tboerger-nixos-c.../shared/services/libvirt.nix
2024-07-17 16:05:33 +02:00

36 lines
515 B
Nix

{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.personal.services.libvirt;
in
{
options = {
personal = {
services = {
libvirt = {
enable = mkEnableOption "Libvirt";
};
};
};
};
config = mkIf cfg.enable {
environment = {
systemPackages = with pkgs; [
cdrkit
cloud-utils
guestfs-tools
virt-viewer
];
};
virtualisation = {
libvirtd = {
enable = true;
};
};
};
}