mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
27 lines
627 B
Nix
27 lines
627 B
Nix
{lib, ...}: let
|
|
inherit (lib.strings) concatStringsSep;
|
|
dot = concatStringsSep ".";
|
|
cutie = dot ["cutie" "moe"];
|
|
netname = {config, ...}: {
|
|
domain = dot [config.name cutie];
|
|
};
|
|
in {
|
|
type = "Linux";
|
|
access.domain = dot ["gensokyo" cutie];
|
|
network.networks = {
|
|
local = {
|
|
imports = [netname];
|
|
macAddress = let
|
|
#eth = "18:c0:4d:08:87:bd";
|
|
eth25 = "18:c0:4d:08:87:bc";
|
|
in
|
|
eth25;
|
|
address4 = "10.1.1.32";
|
|
};
|
|
tail = {
|
|
imports = [netname];
|
|
address4 = "100.104.155.122";
|
|
address6 = "fd7a:115c:a1e0:ab12:4843:cd96:6268:9b7a";
|
|
};
|
|
};
|
|
}
|