nixos/samba: make securityType an enum

The possible values were sourced from reading `man smb.conf`.
This commit is contained in:
Jade Lovelace 2023-11-09 00:35:58 -08:00
parent a5e0fd8ecb
commit ac827a6f85

View file

@ -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";
};