mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
deactivated samba
This commit is contained in:
parent
724b4a1c65
commit
5a805fee35
@ -6,44 +6,44 @@
|
||||
};
|
||||
#networking.hostName = "nucturne"; # define the hostname
|
||||
|
||||
users = {
|
||||
users.hpprinter = {
|
||||
description = "HP printer access to share";
|
||||
shell = pkgs.shadow;
|
||||
createHome = false;
|
||||
hashedPassword = "$6$qiIL8hOSK1FE7I6H$nAMW86l8O7/oJroOoaqG4WexGRQOOWBV8ooXy3/P7KE8ihQn9x0ScV2/BmvIxeMknGNPQhjD/mjmYn9VcNjAl1";
|
||||
isSystemUser = true;
|
||||
group = "hpprinter";
|
||||
};
|
||||
groups.hpprinter = {};
|
||||
};
|
||||
# users = {
|
||||
# users.hpprinter = {
|
||||
# description = "HP printer access to share";
|
||||
# shell = pkgs.shadow;
|
||||
# createHome = false;
|
||||
# hashedPassword = "$6$qiIL8hOSK1FE7I6H$nAMW86l8O7/oJroOoaqG4WexGRQOOWBV8ooXy3/P7KE8ihQn9x0ScV2/BmvIxeMknGNPQhjD/mjmYn9VcNjAl1";
|
||||
# isSystemUser = true;
|
||||
# group = "hpprinter";
|
||||
# };
|
||||
# groups.hpprinter = {};
|
||||
# };
|
||||
|
||||
services.samba = {
|
||||
enable = true;
|
||||
securityType = "user";
|
||||
extraConfig = ''
|
||||
workgroup = WORKGROUP
|
||||
server string = nucturne
|
||||
netbios name = nucturne
|
||||
security = user
|
||||
#use sendfile = yes
|
||||
#max protocol = smb2
|
||||
hosts allow = 192.168.178.222 localhost
|
||||
hosts deny = 0.0.0.0/0
|
||||
guest account = nobody
|
||||
map to guest = bad user
|
||||
'';
|
||||
shares = {
|
||||
scans = {
|
||||
path = "/home/ellmau/scratch/scans";
|
||||
browseable = "yes";
|
||||
"read only" = "no";
|
||||
"guest ok" = "no";
|
||||
"create mask" = "0644";
|
||||
"directory mask" = "0755";
|
||||
"force user" = "ellmau";
|
||||
"force group" = "users";
|
||||
};
|
||||
};
|
||||
};
|
||||
# services.samba = {
|
||||
# enable = true;
|
||||
# securityType = "user";
|
||||
# extraConfig = ''
|
||||
# workgroup = WORKGROUP
|
||||
# server string = nucturne
|
||||
# netbios name = nucturne
|
||||
# security = user
|
||||
# #use sendfile = yes
|
||||
# #max protocol = smb2
|
||||
# hosts allow = 192.168.178.222 localhost
|
||||
# hosts deny = 0.0.0.0/0
|
||||
# guest account = nobody
|
||||
# map to guest = bad user
|
||||
# '';
|
||||
# shares = {
|
||||
# scans = {
|
||||
# path = "/home/ellmau/scratch/scans";
|
||||
# browseable = "yes";
|
||||
# "read only" = "no";
|
||||
# "guest ok" = "no";
|
||||
# "create mask" = "0644";
|
||||
# "directory mask" = "0755";
|
||||
# "force user" = "ellmau";
|
||||
# "force group" = "users";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user