dotfiles/modules/nixos/homelab/guests/syncthing/syncthingEris/default.nix

25 lines
686 B
Nix
Raw Normal View History

2025-12-09 03:46:57 -06:00
{
flake,
...
}:
let
2025-12-09 18:05:54 -06:00
inherit (import ../../../helpers.nix { inherit flake; }) labHelpers;
2025-12-13 20:35:53 -06:00
inherit (labHelpers) guestPath;
2025-12-09 03:46:57 -06:00
inherit (import ../config { inherit flake; }) syncthingVM;
inherit (flake.config.services) instances;
inherit (flake.config.people) user0;
serviceCfg = instances.syncthing;
2025-12-13 20:35:53 -06:00
interfaceCfg = serviceCfg.interfaces.interface0;
2025-12-09 03:46:57 -06:00
2025-12-13 20:35:53 -06:00
syncthingNick = syncthingVM {
user = user0;
pass = "$2y$05$WoNmQOeBPM5GhxhgkUmZqOoyBU0Y34e9N7gLZ3Xwb2J8V0j5Uoy7u";
ip = interfaceCfg.microvm.ip;
mac = interfaceCfg.microvm.mac;
userMac = interfaceCfg.microvm.macUser;
ssh = interfaceCfg.microvm.ssh;
mnt = guestPath user0;
2025-12-09 03:46:57 -06:00
};
in
syncthingNick