infrastructure/systems/nue/default.nix
2024-09-05 18:22:52 -07:00

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;
};
};
}