mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
50 lines
940 B
Nix
50 lines
940 B
Nix
{
|
|
meta,
|
|
config,
|
|
...
|
|
}: {
|
|
imports = let
|
|
inherit (meta) nixos;
|
|
in [
|
|
nixos.hw.c4130
|
|
nixos.netboot.kyuuto
|
|
];
|
|
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/EFI";
|
|
fsType = "vfat";
|
|
options = ["fmask=0077" "dmask=0077"];
|
|
};
|
|
};
|
|
|
|
networking.useNetworkd = true;
|
|
systemd.network = {
|
|
networks."10-eno1" = {
|
|
inherit (config.systemd.network.links."10-eno1") matchConfig;
|
|
address = ["10.1.1.60/24"];
|
|
gateway = ["10.1.1.1"];
|
|
DHCP = "no";
|
|
networkConfig = {
|
|
IPv6AcceptRA = true;
|
|
};
|
|
linkConfig = {
|
|
Multicast = true;
|
|
};
|
|
};
|
|
links = {
|
|
"10-eno1" = {
|
|
matchConfig = {
|
|
Type = "ether";
|
|
MACAddress = "64:00:6a:c0:a1:4c";
|
|
};
|
|
};
|
|
"10-eno2" = {
|
|
matchConfig = {
|
|
Type = "ether";
|
|
MACAddress = "64:00:6a:c0:a1:4e";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|