mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-nixos-config.git
synced 2025-01-08 00:51:23 +00:00
fix: Ensure mumble's folder ownership
This commit is contained in:
parent
a4d2c06c64
commit
0a698cebe5
|
@ -64,7 +64,9 @@ in
|
||||||
options = [
|
options = [
|
||||||
"bind"
|
"bind"
|
||||||
"x-systemd.required-by=murmur.service"
|
"x-systemd.required-by=murmur.service"
|
||||||
|
"x-systemd.required-by=murmur-ensure-folder-ownership.service"
|
||||||
"x-systemd.before=murmur.service"
|
"x-systemd.before=murmur.service"
|
||||||
|
"x-systemd.before=murmur-ensure-folder-ownership.service"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -77,7 +79,18 @@ in
|
||||||
};
|
};
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
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 = {
|
slices.mumble = {
|
||||||
description = "Mumble service slice";
|
description = "Mumble service slice";
|
||||||
|
|
Loading…
Reference in a new issue