mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-06 16:14:17 +00:00
fix: Ensure mumble's folder ownership
This commit is contained in:
parent
a4d2c06c64
commit
0a698cebe5
|
@ -64,7 +64,9 @@ in
|
|||
options = [
|
||||
"bind"
|
||||
"x-systemd.required-by=murmur.service"
|
||||
"x-systemd.required-by=murmur-ensure-folder-ownership.service"
|
||||
"x-systemd.before=murmur.service"
|
||||
"x-systemd.before=murmur-ensure-folder-ownership.service"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -77,7 +79,18 @@ in
|
|||
};
|
||||
systemd = {
|
||||
services = {
|
||||
murmur.serviceConfig.Slice = "mumble.slice";
|
||||
murmur = { serviceConfig.Slice = "mumble.slice"; };
|
||||
murmur-ensure-folder-ownership = {
|
||||
description = "Ensure murmur folder ownership";
|
||||
before = [ "murmur.service" ];
|
||||
requiredBy = [ "murmur.service" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
serviceConfig.Slice = "mumble.slice";
|
||||
path = with pkgs; [ coreutils ];
|
||||
script = ''
|
||||
chown -R murmur:murmur /var/lib/murmur
|
||||
'';
|
||||
};
|
||||
};
|
||||
slices.mumble = {
|
||||
description = "Mumble service slice";
|
||||
|
|
Loading…
Reference in a new issue