feat: reformated services

This commit is contained in:
Nick 2024-11-23 20:04:38 -06:00
parent c28066d2d3
commit d73b50cb7b
19 changed files with 5 additions and 198 deletions

View file

@ -1,32 +0,0 @@
{
pkgs,
flake,
...
}: let
inherit (flake.config.services.instances) samba jellyfin;
service = 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 = {
package = pkgs.samba4Full;
enable = true;
openFirewall = true;
settings = {
${service.paths.path1} = {
path = jellyfin.paths.path0;
writable = "true";
};
};
};
};
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}