mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-14 10:30:52 -06:00
feat: services for nas all up and running
This commit is contained in:
parent
92088ed139
commit
8649008c93
9 changed files with 54 additions and 21 deletions
|
|
@ -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"; }
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue