No more managed wallpaper, WIP scanner stuff for samba share(s)

This commit is contained in:
Daniel Flanagan 2024-03-07 10:26:58 -06:00
parent 0c51d44c08
commit 1d192f702c
2 changed files with 33 additions and 15 deletions

View file

@ -243,6 +243,13 @@ in {
createHome = true; createHome = true;
}; };
users.users.scannerupload = {
# used for scanner samba access
isSystemUser = true;
group = "users";
createHome = true;
};
users.users.plausible = { users.users.plausible = {
# used for anonymous samba access # used for anonymous samba access
isSystemUser = true; isSystemUser = true;
@ -624,7 +631,7 @@ in {
hosts allow = 100.64.0.0/10 192.168.0.0/16 127.0.0.1 localhost hosts allow = 100.64.0.0/10 192.168.0.0/16 127.0.0.1 localhost
hosts deny = 0.0.0.0/0 hosts deny = 0.0.0.0/0
guest account = guest guest account = guest
map to guest = bad user map to guest = never
# load printers = yes # load printers = yes
# printing = cups # printing = cups
# printcap name = cups # printcap name = cups
@ -637,8 +644,8 @@ in {
"guest ok" = "yes"; "guest ok" = "yes";
"create mask" = "0666"; "create mask" = "0666";
"directory mask" = "0777"; "directory mask" = "0777";
"force user" = "nobody"; # "force user" = "nobody";
"force group" = "users"; # "force group" = "users";
}; };
public = { public = {
path = "/storage/public"; path = "/storage/public";
@ -647,28 +654,39 @@ in {
"guest ok" = "yes"; "guest ok" = "yes";
"create mask" = "0664"; "create mask" = "0664";
"directory mask" = "0775"; "directory mask" = "0775";
"force user" = "nobody"; # "force user" = "nobody";
"force group" = "users"; # "force group" = "users";
}; };
family = { family = {
path = "/storage/family"; path = "/storage/family";
browseable = "yes"; browseable = "yes";
"read only" = "no"; "read only" = "no";
"guest ok" = "no"; "guest ok" = "no";
"create mask" = "0664"; "create mask" = "0660";
"directory mask" = "0775"; "directory mask" = "0770";
"force user" = "nobody"; # "force user" = "nobody";
"force group" = "family"; # "force group" = "family";
};
scannerdocs = {
path = "/storage/scannerdocs";
browseable = "yes";
"read only" = "no";
"guest ok" = "no";
"create mask" = "0600";
"directory mask" = "0700";
"valid users" = "scannerupload";
"force user" = "scannerupload";
"force group" = "users";
}; };
daniel = { daniel = {
path = "/storage/daniel"; path = "/storage/daniel";
browseable = "yes"; browseable = "yes";
"read only" = "no"; "read only" = "no";
"guest ok" = "no"; "guest ok" = "no";
"create mask" = "0640"; "create mask" = "0600";
"directory mask" = "0750"; "directory mask" = "0700";
"force user" = "daniel"; # "force user" = "daniel";
"force group" = "users"; # "force group" = "users";
}; };
# printers = { # printers = {
# comment = "All Printers"; # comment = "All Printers";

View file

@ -41,7 +41,7 @@
godot_4 godot_4
fractal fractal
prismlauncher prismlauncher
variety # wallpaper switcher that I use with GNOME # variety
radeontop radeontop
sops sops
obs-studio obs-studio
@ -54,7 +54,7 @@
sway sway
pass pass
firefox-no-tabs firefox-no-tabs
wallpaper-manager # wallpaper-manager
melee melee
# hyprland # hyprland
]; ];