feat: disable smb and enable llama

This commit is contained in:
uttarayan21
2025-08-06 12:27:15 +05:30
parent bc8ff7ba0c
commit 4be00f3108
9 changed files with 109 additions and 35 deletions

View File

@@ -1,36 +1,36 @@
{...}: {
services = {
samba = {
enable = true;
openFirewall = true;
settings = {
global = {
"workgroup" = "WORKGROUP";
"server string" = "smbnix";
"netbios name" = "smbnix";
"security" = "user";
"hosts allow" = "192.168.11. 127.0.0.1 localhost";
"hosts deny" = "0.0.0.0/0";
"guest account" = "nobody";
"map to guest" = "bad user";
};
public = {
"path" = "/media";
"browseable" = "yes";
"read only" = "no";
"guest ok" = "yes";
"create mask" = "0644";
"directory mask" = "0755";
# "force user" = "username";
# "force group" = "groupname";
};
};
};
samba-wsdd = {
enable = true;
openFirewall = true;
};
};
# services = {
# samba = {
# enable = false;
# openFirewall = true;
# settings = {
# global = {
# "workgroup" = "WORKGROUP";
# "server string" = "smbnix";
# "netbios name" = "smbnix";
# "security" = "user";
# "hosts allow" = "192.168.11. 127.0.0.1 localhost";
# "hosts deny" = "0.0.0.0/0";
# "guest account" = "nobody";
# "map to guest" = "bad user";
# };
#
# public = {
# "path" = "/media";
# "browseable" = "yes";
# "read only" = "no";
# "guest ok" = "yes";
# "create mask" = "0644";
# "directory mask" = "0755";
# # "force user" = "username";
# # "force group" = "groupname";
# };
# };
# };
# samba-wsdd = {
# enable = true;
# openFirewall = true;
# };
# };
networking.firewall.allowPing = true;
}