1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

deactivated samba

This commit is contained in:
Stefan Ellmauthaler 2021-12-01 12:32:22 +01:00
parent 724b4a1c65
commit 5a805fee35

View File

@ -6,44 +6,44 @@
}; };
#networking.hostName = "nucturne"; # define the hostname #networking.hostName = "nucturne"; # define the hostname
users = { # users = {
users.hpprinter = { # users.hpprinter = {
description = "HP printer access to share"; # description = "HP printer access to share";
shell = pkgs.shadow; # shell = pkgs.shadow;
createHome = false; # createHome = false;
hashedPassword = "$6$qiIL8hOSK1FE7I6H$nAMW86l8O7/oJroOoaqG4WexGRQOOWBV8ooXy3/P7KE8ihQn9x0ScV2/BmvIxeMknGNPQhjD/mjmYn9VcNjAl1"; # hashedPassword = "$6$qiIL8hOSK1FE7I6H$nAMW86l8O7/oJroOoaqG4WexGRQOOWBV8ooXy3/P7KE8ihQn9x0ScV2/BmvIxeMknGNPQhjD/mjmYn9VcNjAl1";
isSystemUser = true; # isSystemUser = true;
group = "hpprinter"; # group = "hpprinter";
}; # };
groups.hpprinter = {}; # groups.hpprinter = {};
}; # };
services.samba = { # services.samba = {
enable = true; # enable = true;
securityType = "user"; # securityType = "user";
extraConfig = '' # extraConfig = ''
workgroup = WORKGROUP # workgroup = WORKGROUP
server string = nucturne # server string = nucturne
netbios name = nucturne # netbios name = nucturne
security = user # security = user
#use sendfile = yes # #use sendfile = yes
#max protocol = smb2 # #max protocol = smb2
hosts allow = 192.168.178.222 localhost # hosts allow = 192.168.178.222 localhost
hosts deny = 0.0.0.0/0 # hosts deny = 0.0.0.0/0
guest account = nobody # guest account = nobody
map to guest = bad user # map to guest = bad user
''; # '';
shares = { # shares = {
scans = { # scans = {
path = "/home/ellmau/scratch/scans"; # path = "/home/ellmau/scratch/scans";
browseable = "yes"; # browseable = "yes";
"read only" = "no"; # "read only" = "no";
"guest ok" = "no"; # "guest ok" = "no";
"create mask" = "0644"; # "create mask" = "0644";
"directory mask" = "0755"; # "directory mask" = "0755";
"force user" = "ellmau"; # "force user" = "ellmau";
"force group" = "users"; # "force group" = "users";
}; # };
}; # };
}; # };
} }