mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-13 10:00:52 -06:00
26 lines
555 B
Nix
Executable file
26 lines
555 B
Nix
Executable file
{
|
|
flake,
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (import ../config { inherit flake; }) websiteVM;
|
|
inherit (flake.config.services) instances;
|
|
|
|
websiteUpRoot =
|
|
let
|
|
websitePkg = flake.self.packages.${pkgs.system}.website;
|
|
interfaceCfg = instances.website.interfaces.interface0;
|
|
in
|
|
websiteVM {
|
|
user = "uproot";
|
|
ip = interfaceCfg.microvm.ip;
|
|
mac = interfaceCfg.microvm.mac;
|
|
ssh = interfaceCfg.microvm.ssh;
|
|
userMac = interfaceCfg.microvm.macUser;
|
|
package = websitePkg;
|
|
};
|
|
|
|
in
|
|
websiteUpRoot
|