feat: refactored abstractions

This commit is contained in:
Nick 2024-10-19 18:22:29 -05:00
parent f3897c1e0c
commit 2e0ba5f89e
23 changed files with 324 additions and 310 deletions

View file

@ -4,6 +4,7 @@
...
}: let
inherit (flake.config.service.instance) 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
@ -13,7 +14,7 @@ in {
enable = true;
openFirewall = true;
settings = {
${samba.paths.path1} = {
${service.paths.path1} = {
path = jellyfin.paths.path0;
writable = "true";
};
@ -24,7 +25,7 @@ in {
networking = {
firewall = {
allowedTCPPorts = [
samba.ports.port0
service.ports.port0
];
};
};