refactor: update configurations and fix inconsistent naming
Refactor various NixOS and home-manager configurations to improve consistency and readability. Correct naming inconsistencies, ensure proper indentation, and restructure Samba settings for better clarity and maintainability.
This commit is contained in:
parent
26b76063e1
commit
3953362456
17 changed files with 49 additions and 49 deletions
|
@ -47,7 +47,7 @@ in
|
|||
"/home"
|
||||
"/root"
|
||||
"/persist"
|
||||
config.services.samba.shares.Qmultimedia.path
|
||||
config.services.samba.settings.Qmultimedia.path
|
||||
];
|
||||
extraBackupArgs =
|
||||
let
|
||||
|
|
|
@ -23,6 +23,9 @@
|
|||
podman.enable = true;
|
||||
secureboot.enable = true;
|
||||
user.extraGroups = [ "docker" ];
|
||||
tools = {
|
||||
direnv.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation = {
|
||||
|
|
|
@ -38,36 +38,25 @@
|
|||
services.samba = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
securityType = "user";
|
||||
extraConfig = ''
|
||||
read raw = Yes
|
||||
write raw = Yes
|
||||
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
|
||||
min receivefile size = 16384
|
||||
use sendfile = true
|
||||
aio read size = 16384
|
||||
aio write size = 16384
|
||||
workgroup = WORKGROUP
|
||||
server string = sgx
|
||||
netbios name = sgx
|
||||
security = user
|
||||
#max protocol = smb2
|
||||
hosts allow = 192.168.178. 127.0.0.1 localhost 2003::/16 ::1
|
||||
hosts deny = ALL
|
||||
guest account = nobody
|
||||
map to guest = bad user
|
||||
'';
|
||||
shares = {
|
||||
# public = {
|
||||
# path = "/mnt/Shares/Public";
|
||||
# browseable = "yes";
|
||||
# "read only" = "no";
|
||||
# "guest ok" = "yes";
|
||||
# "create mask" = "0644";
|
||||
# "directory mask" = "0755";
|
||||
# "force user" = "username";
|
||||
# "force group" = "groupname";
|
||||
# };
|
||||
settings = {
|
||||
global = {
|
||||
security = "user";
|
||||
"read raw" = "Yes";
|
||||
"write raw" = "Yes";
|
||||
"socket options" = "TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072";
|
||||
"min receivefile size" = 16384;
|
||||
"use sendfile" = true;
|
||||
"aio read size" = 16384;
|
||||
"aio write size" = 16384;
|
||||
"workgroup" = "WORKGROUP";
|
||||
"server string" = "sgx";
|
||||
"netbios name" = "sgx";
|
||||
#"max protocol" = "smb2";
|
||||
"hosts allow" = "192.168.178. 127.0.0.1 localhost 2003::/16 ::1";
|
||||
"hosts deny" = "ALL";
|
||||
"guest account" = "nobody";
|
||||
"map to guest" = "bad user";
|
||||
};
|
||||
Qmultimedia = {
|
||||
path = "/mnt/raid/Qmultimedia";
|
||||
browseable = "yes";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue