nixos/castle: Add libvirt
This commit is contained in:
parent
4ee66cdca7
commit
b4d0d9aff9
@ -108,6 +108,9 @@ in
|
|||||||
blueman.enable = true;
|
blueman.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.virt-manager.enable = true;
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
domain = "h.${lib.my.c.pubDomain}";
|
domain = "h.${lib.my.c.pubDomain}";
|
||||||
firewall.enable = false;
|
firewall.enable = false;
|
||||||
|
@ -463,6 +463,9 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
(mkIf config.virtualisation.libvirtd.enable {
|
||||||
|
my.tmproot.persistence.config.directories = [ "/var/lib/libvirt" ];
|
||||||
|
})
|
||||||
]))
|
]))
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
@ -35,8 +35,9 @@ in
|
|||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
uid = mkDefault 1000;
|
uid = mkDefault 1000;
|
||||||
extraGroups =
|
extraGroups =
|
||||||
[ "wheel" "kvm" ] ++
|
[ "wheel" "kvm" "dialout" ] ++
|
||||||
(optional config.networking.networkmanager.enable "networkmanager");
|
(optional config.networking.networkmanager.enable "networkmanager") ++
|
||||||
|
(optional config.virtualisation.libvirtd.enable "libvirtd");
|
||||||
password = mkIf (cfg.passwordSecret == null) (mkDefault "hunter2");
|
password = mkIf (cfg.passwordSecret == null) (mkDefault "hunter2");
|
||||||
shell =
|
shell =
|
||||||
let shell = cfg.homeConfig.my.shell;
|
let shell = cfg.homeConfig.my.shell;
|
||||||
|
Loading…
Reference in New Issue
Block a user