nixos/libvirtd: add assertion requiring polkit to be enabled

master
jakobrs 2020-08-07 17:47:27 +02:00 committed by sterni
parent 2f92034d30
commit 475c007da0
1 changed files with 7 additions and 0 deletions

View File

@ -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: