We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc594f9 + 2f45486 commit 2234999Copy full SHA for 2234999
nixos/modules/services/security/kanidm.nix
@@ -855,12 +855,16 @@ in
855
User = "kanidm";
856
Group = "kanidm";
857
858
- BindPaths = [
859
- # To create the socket
860
- "/run/kanidmd:/run/kanidmd"
861
- # To store backups
862
- cfg.serverSettings.online_backup.path
863
- ];
+ BindPaths =
+ [
+ # To create the socket
+ "/run/kanidmd:/run/kanidmd"
+ # To store backups
+ cfg.serverSettings.online_backup.path
864
+ ]
865
+ ++ optional (
866
+ cfg.enablePam && cfg.unixSettings ? home_mount_prefix
867
+ ) cfg.unixSettings.home_mount_prefix;
868
869
AmbientCapabilities = [ "CAP_NET_BIND_SERVICE" ];
870
CapabilityBoundingSet = [ "CAP_NET_BIND_SERVICE" ];
0 commit comments