mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-14 02:20:53 -06:00
38 lines
940 B
Nix
38 lines
940 B
Nix
|
|
{
|
||
|
|
flake,
|
||
|
|
config,
|
||
|
|
pkgs,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
let
|
||
|
|
inherit (import ../config { inherit flake config pkgs; }) 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;
|
||
|
|
userMac = interfaceCfg.microvm.macUser;
|
||
|
|
package = websitePkg;
|
||
|
|
};
|
||
|
|
|
||
|
|
websiteProject =
|
||
|
|
let
|
||
|
|
websitePkg = flake.inputs.linkpage.packages.${pkgs.stdenv.hostPlatform.system}.websiteFrontend;
|
||
|
|
interfaceCfg = instances.website.interfaces.interface1;
|
||
|
|
in
|
||
|
|
websiteVM {
|
||
|
|
user = "project";
|
||
|
|
ip = interfaceCfg.microvm.ip;
|
||
|
|
mac = interfaceCfg.microvm.mac;
|
||
|
|
userMac = interfaceCfg.microvm.macUser;
|
||
|
|
package = websitePkg;
|
||
|
|
};
|
||
|
|
in
|
||
|
|
websiteProject // websiteUpRoot
|