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:
Harald Hoyer 2024-11-28 10:01:46 +01:00
parent 26b76063e1
commit 3953362456
17 changed files with 49 additions and 49 deletions

View file

@ -11,9 +11,9 @@ with lib.metacfg;
];
masApps = { };
onActivation = {
cleanup = "zap";
autoUpdate = true;
upgrade = true;
cleanup = "zap";
autoUpdate = true;
upgrade = true;
};
};

View file

@ -22,6 +22,9 @@
nix.enable = true;
podman.enable = true;
secureboot.enable = false;
tools = {
direnv.enable = true;
};
};
security = {

View file

@ -27,6 +27,9 @@ with lib.metacfg;
"docker"
"sgx"
];
tools = {
direnv.enable = true;
};
};
environment.etc."sgx_default_qcnl.conf".text = ''

View file

@ -47,7 +47,7 @@ in
"/home"
"/root"
"/persist"
config.services.samba.shares.Qmultimedia.path
config.services.samba.settings.Qmultimedia.path
];
extraBackupArgs =
let

View file

@ -23,6 +23,9 @@
podman.enable = true;
secureboot.enable = true;
user.extraGroups = [ "docker" ];
tools = {
direnv.enable = true;
};
};
virtualisation = {

View file

@ -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";

View file

@ -14,6 +14,9 @@
"docker"
"dialout"
];
tools = {
direnv.enable = true;
};
};
system.autoUpgrade = {

View file

@ -13,8 +13,8 @@ with lib.metacfg;
secureboot.enable = true;
homeprinter.enable = true;
tools = {
direnv.enable = true;
#git.enable = true;
direnv.enable = true;
#git.enable = true;
};
user.extraGroups = [
"docker"