nixos/samba: start service after network activation

This commit is contained in:
Izorkin
2023-10-10 20:13:52 +02:00
committed by Bjørn Forsman
parent f3d84b91e9
commit cfd837442f
@@ -39,7 +39,7 @@ let
daemonService = appName: args:
{ description = "Samba Service Daemon ${appName}";
after = [ (mkIf (cfg.enableNmbd && "${appName}" == "smbd") "samba-nmbd.service") ];
after = [ (mkIf (cfg.enableNmbd && "${appName}" == "smbd") "samba-nmbd.service") "network.target" ];
requiredBy = [ "samba.target" ];
partOf = [ "samba.target" ];