about summary refs log tree commit diff
path: root/nixos/modules/services/network-filesystems
diff options
context:
space:
mode:
authorJade Lovelace <software@lfcode.ca>2023-11-09 00:35:58 -0800
committerJade Lovelace <software@lfcode.ca>2023-11-09 00:35:58 -0800
commitac827a6f855b58feb4f5b6ea073acf83b3348339 (patch)
tree9eb7225b7c1153b1481427b9a7f394988df2df41 /nixos/modules/services/network-filesystems
parenta5e0fd8ecbcb6606261c2e94134b847c17b475c0 (diff)
downloadnixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.tar
nixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.tar.gz
nixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.tar.bz2
nixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.tar.lz
nixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.tar.xz
nixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.tar.zst
nixlib-ac827a6f855b58feb4f5b6ea073acf83b3348339.zip
nixos/samba: make securityType an enum
The possible values were sourced from reading `man smb.conf`.
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 0b22302c0b6d..db7fbc17eb8e 100644
--- a/nixos/modules/services/network-filesystems/samba.nix
+++ b/nixos/modules/services/network-filesystems/samba.nix
@@ -160,7 +160,7 @@ in
       };
 
       securityType = mkOption {
-        type = types.str;
+        type = types.enum [ "auto" "user" "domain" "ads" ];
         default = "user";
         description = lib.mdDoc "Samba security type";
       };