Skip to content

Commit

Permalink
nixos/samba: make securityType an enum
Browse files Browse the repository at this point in the history
The possible values were sourced from reading `man smb.conf`.
  • Loading branch information
lf- committed Nov 9, 2023
1 parent a5e0fd8 commit ac827a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/network-filesystems/samba.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand Down

0 comments on commit ac827a6

Please sign in to comment.