feat: services for nas all up and running

This commit is contained in:
Nick 2025-12-09 21:01:56 -06:00
parent 92088ed139
commit 8649008c93
9 changed files with 54 additions and 21 deletions

View file

@ -11,6 +11,7 @@ in
syncthingVM =
{
user,
pass,
ip,
mac,
userMac,
@ -38,14 +39,17 @@ in
openDefaultPorts = true;
systemService = true;
guiAddress = "0.0.0.0:${toString serviceCfg.ports.port0}";
guiPasswordFile = "/run/secrets/${user}-pass";
# guiPasswordFile = "/run/secrets/${user}-pass";
settings = {
gui = {
user = user;
password = pass;
};
folders = folders;
devices = devices;
options = {
upAccepted = -1;
user = user;
authMode = "static";
urAccepted = -1;
};
};
};
@ -74,7 +78,7 @@ in
network = {
enable = true;
networks."20-lan" = {
matchConfig.Name = "enp0s*";
matchConfig.Name = "enp0s8";
addresses = [
{ Address = "${ip}/24"; }
];

View file

@ -87,6 +87,7 @@ let
in
syncthingVM {
user = user0;
pass = "$2y$05$WoNmQOeBPM5GhxhgkUmZqOoyBU0Y34e9N7gLZ3Xwb2J8V0j5Uoy7u";
ip = interface0Cfg.microvm.ip;
mac = interface0Cfg.microvm.mac;
userMac = interface0Cfg.microvm.macUser;