mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/samba: revert default values
This commit is contained in:
parent
3da382ed8b
commit
603159799c
1 changed files with 29 additions and 3 deletions
|
@ -106,13 +106,39 @@ in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
settings = lib.mkOption {
|
settings = lib.mkOption {
|
||||||
type = lib.types.submodule { freeformType = settingsFormat.type; };
|
type = lib.types.submodule {
|
||||||
default = {};
|
freeformType = settingsFormat.type;
|
||||||
|
options = {
|
||||||
|
global.security = lib.mkOption {
|
||||||
|
type = lib.types.enum [ "auto" "user" "domain" "ads" ];
|
||||||
|
default = "user";
|
||||||
|
description = "Samba security type.";
|
||||||
|
};
|
||||||
|
global."invalid users" = lib.mkOption {
|
||||||
|
type = lib.types.listOf lib.types.str;
|
||||||
|
default = [ "root" ];
|
||||||
|
description = "List of users who are denied to login via Samba.";
|
||||||
|
apply = x: lib.concatStringsSep " " x;
|
||||||
|
};
|
||||||
|
global."passwd program" = lib.mkOption {
|
||||||
|
type = lib.types.str;
|
||||||
|
default = "/run/wrappers/bin/passwd %u";
|
||||||
|
description = "Path to a program that can be used to set UNIX user passwords.";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
default = {
|
||||||
|
"global" = {
|
||||||
|
"security" = "user";
|
||||||
|
"passwd program" = "/run/wrappers/bin/passwd %u";
|
||||||
|
"invalid users" = [ "root" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
example = {
|
example = {
|
||||||
"global" = {
|
"global" = {
|
||||||
"security" = "user";
|
"security" = "user";
|
||||||
"passwd program" = "/run/wrappers/bin/passwd %u";
|
"passwd program" = "/run/wrappers/bin/passwd %u";
|
||||||
"invalid users" = "root";
|
"invalid users" = [ "root" ];
|
||||||
};
|
};
|
||||||
"public" = {
|
"public" = {
|
||||||
"path" = "/srv/public";
|
"path" = "/srv/public";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue