mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-14 02:20:53 -06:00
27 lines
669 B
Nix
27 lines
669 B
Nix
|
|
{
|
||
|
|
flake,
|
||
|
|
lib,
|
||
|
|
labHelpers,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
let
|
||
|
|
inherit (import ../../helpers.nix) labHelpers;
|
||
|
|
inherit (labHelpers) guestPath mediaPath;
|
||
|
|
inherit (import ../config { inherit flake lib; }) photoprismVM;
|
||
|
|
inherit (flake.config.services.instances) photoprism;
|
||
|
|
inherit (flake.config.people) user0;
|
||
|
|
interface0Cfg = photoprism.interfaces.interface0;
|
||
|
|
|
||
|
|
photoprismNick = photoprismVM {
|
||
|
|
user = user0;
|
||
|
|
ip = interface0Cfg.microvm.ip;
|
||
|
|
mac = interface0Cfg.microvm.mac;
|
||
|
|
userMac = interface0Cfg.microvm.macUser;
|
||
|
|
ssh = interface0Cfg.microvm.ssh;
|
||
|
|
mnt = guestPath user0;
|
||
|
|
data = mediaPath user0;
|
||
|
|
host = interface0Cfg.domain;
|
||
|
|
};
|
||
|
|
in
|
||
|
|
photoprismNick
|