setup nix-topology

This commit is contained in:
2025-05-30 01:25:08 +02:00
parent a0c2c41d17
commit aab09abc52
10 changed files with 262 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
./nginx.nix
./syncthing.nix
./taskchampion.nix
./topology.nix
../../system
../../modules/borgbackup.nix

View File

@@ -0,0 +1,24 @@
{ config, ... }:
let
inherit (config.lib.topology)
mkConnection
;
in
{
topology.self = {
hardware.info = "Raspberry Pi 4B";
interfaces = {
tailscale0 = {
type = "wireguard";
network = "tailscale";
};
enp1s0 = {
type = "ethernet";
network = "home";
physicalConnections = [
(mkConnection "cassoulet" "eth1")
];
};
};
};
}