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

32 lines
734 B
Nix
Raw Normal View History

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