summary refs log tree commit diff
path: root/modules/services/network-filesystems/samba.nix
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2010-03-16 17:17:37 +0000
committerMichael Raskin <7c6f434c@mail.ru>2010-03-16 17:17:37 +0000
commit6788d457dca309e35fd2d1a9902a6fde3920443e (patch)
treef1b2b92e99e477b00ab6d03e9c1ef9f3bfb6e57d /modules/services/network-filesystems/samba.nix
parent11f8647d73742558a300aff247528251acad7833 (diff)
downloadnixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.tar
nixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.tar.gz
nixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.tar.bz2
nixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.tar.lz
nixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.tar.xz
nixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.tar.zst
nixpkgs-6788d457dca309e35fd2d1a9902a6fde3920443e.zip
Make security type configurable
svn path=/nixos/trunk/; revision=20667
Diffstat (limited to 'modules/services/network-filesystems/samba.nix')
-rw-r--r--modules/services/network-filesystems/samba.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/services/network-filesystems/samba.nix b/modules/services/network-filesystems/samba.nix
index be7406cd5df..29c44d46e68 100644
--- a/modules/services/network-filesystems/samba.nix
+++ b/modules/services/network-filesystems/samba.nix
@@ -124,7 +124,7 @@ in
             log file = /var/log/samba/log.%m
             log level = 10
             max log size = 50000
-            security = user
+            security = ${cfg.securityType}
 
             client lanman auth = Yes
             dns proxy = no
@@ -159,6 +159,12 @@ in
 	};
       };
 
+      securityType = mkOption {
+        description = "Samba security type";
+	default = "user";
+	example = "share";
+      };
+
     };
 
   };