about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorEmile <git@emile.space>2024-06-09 00:20:26 +0200
committerEmile <git@emile.space>2024-06-09 00:20:26 +0200
commit75650e333dc967aa781a440b4b0568f19a8c9d98 (patch)
tree4a819ac2725f8dc6698c0dd6237bfa7ee9d702db /nix
parentc2ab18c306f93b33a43788f558d9a977a243c7b4 (diff)
samba formatting
Diffstat (limited to 'nix')
-rw-r--r--nix/hosts/lampadas/configuration.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/nix/hosts/lampadas/configuration.nix b/nix/hosts/lampadas/configuration.nix
index 8659c7c..2130794 100644
--- a/nix/hosts/lampadas/configuration.nix
+++ b/nix/hosts/lampadas/configuration.nix
@@ -72,7 +72,7 @@ in {
       };
       emile = {
         isNormalUser = true;
-        extraGroups = [ "wheel" ];
+        extraGroups = [ "wheel" "samba-guest" ];
         openssh.authorizedKeys.keys = emile_keys;
       };
       samba-guest = {
@@ -136,7 +136,7 @@ in {
         workgroup = WORKGROUP
         server string = lampadas
         netbios name = lampadas
-        security = user
+        security = user 
         hosts allow = 100.64.0.0/255.192.0.0, 127.0.0.1/255.0.0.0, ::1, 192.168.0., 192.168.1.
         hosts deny = 0.0.0.0/0
         guest account = samba-guest 
@@ -159,9 +159,12 @@ in {
           "browseable" = "yes";
           "read only" = "no";
           "guest ok" = "yes";
+          "guest only" = "yes";
+          "available" = "yes";
           "create mask" = "0644";
           "directory mask" = "0755";
           "comment" = "public data";
+          "writable" = "yes";
         };
         private = {
           path = "/data/private";