{ flake, pkgs, labHelpers, ... }: let inherit (labHelpers) mntPath guestPath; inherit (import ./config { inherit flake pkgs; }) opencloudVM; inherit (flake.config.people) user0; inherit (flake.config.services.instances) opencloud; interface0Cfg = opencloud.interfaces.interface0; interface1Cfg = opencloud.interfaces.interface1; in { opencloudNick = opencloudVM { user = user0; ip = interface0Cfg.microvm.ip; mac = interface0Cfg.microvm.mac; userMac = interface0Cfg.microvm.macUser; ssh = interface0Cfg.microvm.ssh; mnt = guestPath user0; host = interface0Cfg.domain; }; opencloudProject = opencloudVM { user = user0; ip = interface1Cfg.microvm.ip; mac = interface1Cfg.microvm.mac; userMac = interface1Cfg.microvm.macUser; ssh = interface1Cfg.microvm.ssh; mnt = mntPath; host = "${interface0Cfg.subdomain}.${flake.inputs.linkpage.secrets.domains.projectsite}"; }; # opencloudStacie = opencloudVM { # user = "stacie"; # ip = ipAddress id1; # mac = "02:00:00:00:${id1}:${id1}"; # userMac = "02:00:00:00:00:${id1}"; # ssh = opencloud.ssh1; # mnt = guestPath "stacie"; # host = ""; # }; # opencloudGarnet = opencloudVM { # user = "garnet"; # ip = ipAddress id2; # mac = "02:00:00:00:${id2}:${id2}"; # userMac = "02:00:00:00:00:${id2}"; # ssh = opencloud.ssh2; # mnt = guestPath "garnet"; # host = ""; # }; }