mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-16 11:30:53 -06:00
24 lines
686 B
Nix
Executable file
24 lines
686 B
Nix
Executable file
{
|
|
flake,
|
|
...
|
|
}:
|
|
let
|
|
inherit (import ../../../helpers.nix { inherit flake; }) labHelpers;
|
|
inherit (labHelpers) guestPath;
|
|
inherit (import ../config { inherit flake; }) syncthingVM;
|
|
inherit (flake.config.services) instances;
|
|
inherit (flake.config.people) user0;
|
|
serviceCfg = instances.syncthing;
|
|
interfaceCfg = serviceCfg.interfaces.interface0;
|
|
|
|
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;
|
|
};
|
|
in
|
|
syncthingNick
|