mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
29 lines
637 B
Nix
29 lines
637 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];
|
|
address4 = "10.1.1.62";
|
|
address6 = "fd0a::daf8:83ff:fe36:81b6";
|
|
};
|
|
tail = {
|
|
imports = [netname];
|
|
address4 = "100.75.15.95";
|
|
address6 = "fd7a:115c:a1e0::fa01:f5f";
|
|
};
|
|
};
|
|
exports.services = {
|
|
sshd = {
|
|
enable = true;
|
|
ports.public.port = 62022;
|
|
};
|
|
};
|
|
}
|