nixos/libvirtd: add assertion requiring polkit to be enabled
This commit is contained in:
parent
2f92034d30
commit
475c007da0
1 changed files with 7 additions and 0 deletions
|
@ -155,6 +155,13 @@ in {
|
|||
|
||||
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 = {
|
||||
# this file is expected in /etc/qemu and not sysconfdir (/var/lib)
|
||||
etc."qemu/bridge.conf".text = lib.concatMapStringsSep "\n" (e:
|
||||
|
|
Loading…
Reference in a new issue