summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems
diff options
context:
space:
mode:
authorIzorkin <izorkin@elven.pw>2023-10-04 22:43:33 +0300
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-10-10 20:13:52 +0200
commitcfd837442f529f10331e401e9975ae551360a4c4 (patch)
treec34e51a3bb6cc8098eb0dc29f3c86f931b3360fa /nixos/modules/services/network-filesystems
parentf3d84b91e9f33651532ad792083da5206d78732a (diff)
downloadnixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.tar
nixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.tar.gz
nixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.tar.bz2
nixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.tar.lz
nixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.tar.xz
nixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.tar.zst
nixpkgs-cfd837442f529f10331e401e9975ae551360a4c4.zip
nixos/samba: start service after network activation
Diffstat (limited to 'nixos/modules/services/network-filesystems')
-rw-r--r--nixos/modules/services/network-filesystems/samba.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix
index 1310a374abd..0b22302c0b6 100644
--- a/nixos/modules/services/network-filesystems/samba.nix
+++ b/nixos/modules/services/network-filesystems/samba.nix
@@ -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" ];