about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-09-30 21:18:04 +0200
committerEelco Dolstra <edolstra@gmail.com>2016-09-30 21:22:58 +0200
commite993506d4c3d580495087c85c901d54908e445a0 (patch)
tree7554ba9462393e242e0983866b580a121a870080
parent3b89a6e0209fb75e36473905dd8bbae1e30d2ac5 (diff)
downloadnixlib-e993506d4c3d580495087c85c901d54908e445a0.tar
nixlib-e993506d4c3d580495087c85c901d54908e445a0.tar.gz
nixlib-e993506d4c3d580495087c85c901d54908e445a0.tar.bz2
nixlib-e993506d4c3d580495087c85c901d54908e445a0.tar.lz
nixlib-e993506d4c3d580495087c85c901d54908e445a0.tar.xz
nixlib-e993506d4c3d580495087c85c901d54908e445a0.tar.zst
nixlib-e993506d4c3d580495087c85c901d54908e445a0.zip
samba: Use startup notification
This ensures synchronous unit start.
-rw-r--r--nixos/modules/services/network-filesystems/samba.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/modules/services/network-filesystems/samba.nix b/nixos/modules/services/network-filesystems/samba.nix
index a186982ec9c0..7de85b59e2af 100644
--- a/nixos/modules/services/network-filesystems/samba.nix
+++ b/nixos/modules/services/network-filesystems/samba.nix
@@ -56,6 +56,7 @@ let
       serviceConfig = {
         ExecStart = "${samba}/sbin/${appName} ${args}";
         ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
+        Type = "notify";
       };
 
       restartTriggers = [ configFile ];
@@ -167,12 +168,12 @@ in
         type = types.attrsOf (types.attrsOf types.unspecified);
         example =
           { public =
-             { path = "/srv/public";
-               "read only" = true;
-               browseable = "yes";
-               "guest ok" = "yes";
-                comment = "Public samba share.";
-             };
+            { path = "/srv/public";
+              "read only" = true;
+              browseable = "yes";
+              "guest ok" = "yes";
+              comment = "Public samba share.";
+            };
           };
       };