mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
fix: samba unfucked
This commit is contained in:
parent
65cda6178f
commit
60a8eaa374
3 changed files with 16 additions and 11 deletions
0
modules/config/devices/config/lamdagibson.nix
Normal file → Executable file
0
modules/config/devices/config/lamdagibson.nix
Normal file → Executable file
|
|
@ -75,7 +75,7 @@ in
|
||||||
"Z ${serviceCfg.varPaths.path0} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
"Z ${serviceCfg.varPaths.path0} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
||||||
"Z ${serviceCfg.varPaths.path2} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
"Z ${serviceCfg.varPaths.path2} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
||||||
"d ${serviceCfg.varPaths.path1} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
"d ${serviceCfg.varPaths.path1} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
||||||
"Z ${serviceCfg.varPaths.path2} 0755 ${serviceCfg.name} ${serviceCfg.name} -"
|
"Z ${serviceCfg.varPaths.path2} 0775 ${serviceCfg.name} ${serviceCfg.name} -"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -161,9 +161,9 @@ in
|
||||||
users.users.caddy.extraGroups = [ "acme" ];
|
users.users.caddy.extraGroups = [ "acme" ];
|
||||||
|
|
||||||
systemd.tmpfiles.rules = [
|
systemd.tmpfiles.rules = [
|
||||||
"d ${serviceCfg.mntPaths.path0} 0751 microvm wheel - -"
|
"d ${serviceCfg.mntPaths.path0} 0755 microvm wheel - -"
|
||||||
"d ${serviceCfg.mntPaths.path0}/data 0751 microvm wheel - -"
|
"d ${serviceCfg.mntPaths.path0}/data 0755 microvm wheel - -"
|
||||||
"d ${serviceCfg.mntPaths.path0}/cache 0751 microvm wheel - -"
|
"d ${serviceCfg.mntPaths.path0}/cache 0755 microvm wheel - -"
|
||||||
"d ${serviceCfg.mntPaths.path0}/media 0751 microvm wheel - -"
|
"d ${serviceCfg.mntPaths.path0}/media 0775 microvm wheel - -"
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,9 @@
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
flake,
|
flake,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
inherit (flake.config.services)
|
inherit (flake.config.services) instances;
|
||||||
instances
|
|
||||||
;
|
|
||||||
service = instances.samba;
|
service = instances.samba;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -19,8 +16,16 @@ in
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
settings = {
|
settings = {
|
||||||
"storage" = {
|
"storage" = {
|
||||||
path = "/mnt/storage";
|
path = "/mnt/storage/${instances.jellyfin.name}/media";
|
||||||
writable = "true";
|
browseable = "yes";
|
||||||
|
writeable = "yes";
|
||||||
|
"guest ok" = "no";
|
||||||
|
"create mask" = "0664";
|
||||||
|
"directory mask" = "0775";
|
||||||
|
"force user" = "microvm";
|
||||||
|
"force group" = "wheel";
|
||||||
|
"force create mode" = "0664";
|
||||||
|
"force directory mode" = "0775";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue