mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-16 11:30:53 -06:00
37 lines
707 B
Nix
Executable file
37 lines
707 B
Nix
Executable file
{
|
|
flake,
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
inherit (import ../../../helpers.nix { inherit flake; }) labHelpers;
|
|
inherit (labHelpers) mntPath;
|
|
inherit
|
|
(import ../config {
|
|
inherit
|
|
flake
|
|
config
|
|
pkgs
|
|
lib
|
|
;
|
|
})
|
|
mastodonVM
|
|
;
|
|
inherit (flake.config.people) user0;
|
|
inherit (flake.config.services) instances;
|
|
|
|
interfaceCfg = instances.mastodon.interfaces.interface0;
|
|
|
|
mastodonNick = mastodonVM {
|
|
user = user0;
|
|
ip = interfaceCfg.microvm.ip;
|
|
mac = interfaceCfg.microvm.mac;
|
|
userMac = interfaceCfg.microvm.macUser;
|
|
ssh = interfaceCfg.microvm.ssh;
|
|
mnt = mntPath;
|
|
host = interfaceCfg.domain;
|
|
};
|
|
in
|
|
mastodonNick
|