blob: 948500c32447cdfb6e8a17754eae6f33430cc8f4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
(define-module (jd services polkit)
#:use-module (gnu services)
#:use-module (gnu services dbus)
#:use-module (gnu home services)
#:use-module (guix gexp))
(define polkit-network-manager
(file-union
"polkit-wheel"
`(("share/polkit-1/rules.d/50-org.freedesktop.NetworkManager.rules"
,(plain-file
"50-org.freedesktop.NetworkManager.rules"
"polkit.addRule(function(action, subject) {
if (action.id.indexOf(\"org.freedesktop.NetworkManager.\") == 0 &&
subject.isInGroup(\"netdev\")) {
return polkit.Result.YES;
}
});")))))
(define-public polkit-network-manager-service
(simple-service 'polkit-network-manager polkit-service-type (list polkit-network-manager)))
|