diff options
Diffstat (limited to 'machines/dragon.nix')
-rw-r--r-- | machines/dragon.nix | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/machines/dragon.nix b/machines/dragon.nix index 4aea73b..9e61ac2 100644 --- a/machines/dragon.nix +++ b/machines/dragon.nix @@ -56,39 +56,39 @@ in { orbekk.hledger-web.journalFile = "/var/lib/hledger-web/hledger/anniekj.journal"; - services.samba = { - enable = true; - securityType = "user"; - extraConfig = '' - workgroup = WORKGROUP - server string = dragon - netbios name = dragon - security = user - guest account = readonly - map to guest = bad user - ''; - shares = { - annie = { - path = "/storage/annie"; - browseable = "yes"; - "read only" = "no"; - "guest ok" = "no"; - "create mask" = "0666"; - "directory mask" = "0777"; - "force user" = "annie"; - "force group" = "readonly"; - }; - public = { - path = "/storage/upload"; - browseable = "yes"; - "read only" = "no"; - "guest ok" = "yes"; - "create mask" = "0666"; - "directory mask" = "0777"; - "force user" = "readonly"; - "force group" = "readonly"; - }; + services.samba = { + enable = true; + securityType = "user"; + settings = { + global = { + "workgroup" = "WORKGROUP"; + "server string" = "dragon"; + "netbios name" = "dragon"; + "security" = "user"; + "guest account" = "readonly"; + "map to guest" = "bad user"; }; + annie = { + path = "/storage/annie"; + browseable = "yes"; + "read only" = "no"; + "guest ok" = "no"; + "create mask" = "0666"; + "directory mask" = "0777"; + "force user" = "annie"; + "force group" = "readonly"; + }; + public = { + path = "/storage/upload"; + browseable = "yes"; + "read only" = "no"; + "guest ok" = "yes"; + "create mask" = "0666"; + "directory mask" = "0777"; + "force user" = "readonly"; + "force group" = "readonly"; + }; + }; }; services.transmission = { |