setup nix-topology
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
inputs.clan-core.clanModules.state-version
|
||||
../../modules/remote-builder.nix
|
||||
../../modules/borgbackup.nix
|
||||
./topology.nix
|
||||
];
|
||||
|
||||
nixpkgs.hostPlatform = "x86_64-linux";
|
||||
|
||||
11
machines/crocus/topology.nix
Normal file
11
machines/crocus/topology.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
topology.self = {
|
||||
hardware.info = "x86_64 VPS";
|
||||
interfaces = {
|
||||
tailscale0 = {
|
||||
type = "wireguard";
|
||||
network = "tailscale";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -19,6 +19,7 @@
|
||||
./nginx.nix
|
||||
./syncthing.nix
|
||||
./taskchampion.nix
|
||||
./topology.nix
|
||||
|
||||
../../system
|
||||
../../modules/borgbackup.nix
|
||||
|
||||
24
machines/genepi/topology.nix
Normal file
24
machines/genepi/topology.nix
Normal 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")
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -18,6 +18,7 @@
|
||||
./thunderbird.nix
|
||||
./network.nix
|
||||
./syncthing.nix
|
||||
./topology.nix
|
||||
./video.nix
|
||||
../../system
|
||||
|
||||
|
||||
12
machines/haze/topology.nix
Normal file
12
machines/haze/topology.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
topology.self = {
|
||||
hardware.info = "VivoBook Laptop";
|
||||
interfaces = {
|
||||
tailscale0 = {
|
||||
type = "wireguard";
|
||||
network = "tailscale";
|
||||
virtual = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user