common/polkit: apply chroot
This commit is contained in:
@@ -31,6 +31,7 @@ in {
|
||||
./services/openssh.nix
|
||||
./services/pcscd.nix
|
||||
./services/pipewire.nix
|
||||
./services/polkit.nix
|
||||
./services/printing.nix
|
||||
./services/resolved.nix
|
||||
./services/smartd.nix
|
||||
|
||||
20
hosts/common/services/polkit.nix
Normal file
20
hosts/common/services/polkit.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{ 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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user