mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
refactor(dnsmasq): system host info
This commit is contained in:
parent
86ac38cf2c
commit
6c88d99ae6
30 changed files with 841 additions and 288 deletions
23
systems/nue/default.nix
Normal file
23
systems/nue/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.strings) concatStringsSep;
|
||||
dot = concatStringsSep ".";
|
||||
cutie = dot [ "cutie" "moe" ];
|
||||
netname = { config, system, ... }: {
|
||||
domain = dot [ config.name system.access.domain ];
|
||||
};
|
||||
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.86.77.54";
|
||||
address6 = "fd7a:115c:a1e0:ab12:4843:cd96:6256:4d36";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue