homeserver: exposed public nas dir

This commit is contained in:
Tigor Hutasuhut 2024-08-17 11:24:57 +07:00
parent 9e3a4341f7
commit 129e3dac84

View file

@ -58,6 +58,23 @@
];
};
services.caddy.virtualHosts."public.tigor.web.id".extraConfig = /*caddy*/ ''
file_server browse
root * /nas/public
'';
systemd.tmpfiles.settings = {
"100-nas-public-dir" = {
"/nas/public" = {
d = {
group = config.profile.user.name;
mode = "0777";
user = config.profile.user.name;
};
};
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl = {