mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-22 18:21:58 +01:00
36 lines
515 B
Nix
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;
|
|
};
|
|
};
|
|
};
|
|
}
|