dotfiles/modules/nixos/homelab/guests/qbittorrent/qbittorrentCeres/default.nix

32 lines
800 B
Nix
Raw Normal View History

2025-12-09 03:46:57 -06:00
{
flake,
config,
pkgs,
...
}:
let
inherit (import ../../helpers.nix) labHelpers;
inherit (labHelpers) mntPath;
inherit (import ../config { inherit config flake pkgs; }) qbittorrentVM;
inherit (flake.config.people) user0;
inherit (flake.config.services) instances;
interface0Cfg = instances.qbittorrent.interfaces.interface0;
qbittorrentCeres = qbittorrentVM {
user = user0;
ip = interface0Cfg.microvm.ip;
mac = interface0Cfg.microvm.mac;
userMac = interface0Cfg.microvm.macUser;
ssh = interface0Cfg.microvm.ssh;
mnt = mntPath;
host = interface0Cfg.domain;
port = 51820;
endpoint = "185.111.110.1";
address = [ "10.2.0.2/32" ];
dns = [ "10.2.0.1" ];
key = "QPfiwJQmt5VLEOh1ufLbi1lj6LUnwQY0tgDSh3pWx1k=";
};
in
qbittorrentCeres