nixos/samba: start service after network activation

This commit is contained in:
Izorkin 2023-10-04 22:43:33 +03:00 committed by Bjørn Forsman
parent f3d84b91e9
commit cfd837442f

View file

@ -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" ];