From ac827a6f855b58feb4f5b6ea073acf83b3348339 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Thu, 9 Nov 2023 00:35:58 -0800 Subject: [PATCH] nixos/samba: make securityType an enum The possible values were sourced from reading `man smb.conf`. --- nixos/modules/services/network-filesystems/samba.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; };