mirror of
https://github.com/nix-community/home-manager.git
synced 2025-04-14 00:07:15 +00:00
23 lines
584 B
Nix
23 lines
584 B
Nix
{
|
|
services.polkit-gnome.enable = true;
|
|
|
|
nmt.script = ''
|
|
clientServiceFile=home-files/.config/systemd/user/polkit-gnome.service
|
|
|
|
assertFileExists $clientServiceFile
|
|
assertFileContent $clientServiceFile ${
|
|
builtins.toFile "expected.service" ''
|
|
[Install]
|
|
WantedBy=graphical-session.target
|
|
|
|
[Service]
|
|
ExecStart=@polkit-gnome@/libexec/polkit-gnome-authentication-agent-1
|
|
|
|
[Unit]
|
|
After=graphical-session-pre.target
|
|
Description=GNOME PolicyKit Agent
|
|
PartOf=graphical-session.target
|
|
''
|
|
}
|
|
'';
|
|
}
|