test: setting up nas structure

This commit is contained in:
Nick 2025-12-08 22:25:13 -06:00
parent 8cd193ec49
commit 4225970826
747 changed files with 2938 additions and 4347 deletions

View file

@ -0,0 +1,38 @@
{
flake,
...
}:
let
inherit (flake.config.services) instances;
inherit (flake.config.people) user0;
service = instances.samba;
in
{
# If you ever need to start fresh, you need to add yourself to the Samba users database:
# sudo smbpasswd -a username
services = {
samba = {
enable = true;
openFirewall = true;
settings = {
"storage" = {
path = "/mnt/storage";
writable = "yes";
"valid users" = user0;
"force user" = user0;
"force group" = "users";
"create mask" = "0644";
"directory mask" = "0755";
};
};
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}