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

@@ -12,6 +12,7 @@
inputs.clan-core.clanModules.state-version
../../modules/remote-builder.nix
../../modules/borgbackup.nix
./topology.nix
];
nixpkgs.hostPlatform = "x86_64-linux";

View File

@@ -0,0 +1,11 @@
{
topology.self = {
hardware.info = "x86_64 VPS";
interfaces = {
tailscale0 = {
type = "wireguard";
network = "tailscale";
};
};
};
}

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")
];
};
};
};
}

View File

@@ -18,6 +18,7 @@
./thunderbird.nix
./network.nix
./syncthing.nix
./topology.nix
./video.nix
../../system

View File

@@ -0,0 +1,12 @@
{
topology.self = {
hardware.info = "VivoBook Laptop";
interfaces = {
tailscale0 = {
type = "wireguard";
network = "tailscale";
virtual = true;
};
};
};
}