nixos/libvirtd: add assertion requiring polkit to be enabled
This commit is contained in:
parent
2f92034d30
commit
475c007da0
|
@ -155,6 +155,13 @@ in {
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
assertions = [
|
||||||
|
{
|
||||||
|
assertion = config.security.polkit.enable;
|
||||||
|
message = "The libvirtd module currently requires Polkit to be enabled ('security.polkit.enable = true').";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
# this file is expected in /etc/qemu and not sysconfdir (/var/lib)
|
# this file is expected in /etc/qemu and not sysconfdir (/var/lib)
|
||||||
etc."qemu/bridge.conf".text = lib.concatMapStringsSep "\n" (e:
|
etc."qemu/bridge.conf".text = lib.concatMapStringsSep "\n" (e:
|
||||||
|
|
Loading…
Reference in a new issue