nixos/samba: add system-samba.slice

This commit is contained in:
h7x4 2024-01-08 18:16:31 +01:00
parent 521b5b3e67
commit 1d34124593
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146

View File

@ -55,6 +55,7 @@ let
PIDFile = "/run/${appName}.pid";
Type = "notify";
NotifyAccess = "all"; #may not do anything...
Slice = "system-samba.slice";
};
unitConfig.RequiresMountsFor = "/var/lib/samba";
@ -220,6 +221,11 @@ in
wants = [ "network-online.target" ];
wantedBy = [ "multi-user.target" ];
};
slices.system-samba = {
description = "Samba slice";
};
# Refer to https://github.com/samba-team/samba/tree/master/packaging/systemd
# for correct use with systemd
services = {