Files
nix-dotfiles/hosts/common/services/polkit.nix
2025-11-05 09:38:53 +09:00

21 lines
443 B
Nix

{ config, lib, ... }:
let
cfg = config.security.polkit;
in
{
systemd.services.polkit.serviceConfig = lib.mkIf cfg.enable {
RuntimeDirectory = [
"polkit-1"
"polkit-1/root-mnt"
];
RootDirectory = "/run/polkit-1/root-mnt";
BindPaths = [ "/run/dbus/system_bus_socket" ];
BindReadOnlyPaths = [
builtins.storeDir
"/etc"
"/run/systemd"
"/run/current-system/sw/share/polkit-1"
];
};
}