mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
59 lines
1.2 KiB
Nix
59 lines
1.2 KiB
Nix
{
|
|
meta,
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
imports = let
|
|
inherit (meta) nixos;
|
|
in [
|
|
nixos.sops
|
|
nixos.base
|
|
nixos.nginx
|
|
nixos.openwebrx
|
|
];
|
|
|
|
boot.loader.grub.enable = false;
|
|
boot.loader.generic-extlinux-compatible.enable = true;
|
|
|
|
hardware.rtl-sdr.enable = true;
|
|
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
fileSystems."/" = {
|
|
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
networking.useNetworkd = true;
|
|
systemd.network = {
|
|
networks."40-enu1u1" = {
|
|
inherit (config.systemd.network.links.enu1u1) matchConfig;
|
|
address = ["10.1.1.49/24"];
|
|
gateway = ["10.1.1.1"];
|
|
DHCP = "no";
|
|
networkConfig = {
|
|
IPv6AcceptRA = true;
|
|
};
|
|
linkConfig = {
|
|
Multicast = true;
|
|
};
|
|
};
|
|
links.enu1u1 = {
|
|
matchConfig = {
|
|
Type = "ether";
|
|
MACAddress = "b8:27:eb:7e:e2:41";
|
|
};
|
|
linkConfig = {
|
|
WakeOnLan = "magic";
|
|
};
|
|
};
|
|
};
|
|
networking.firewall.interfaces.lan = {
|
|
nftables = {
|
|
conditions = config.networking.firewall.interfaces.local.nftables.conditions;
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "24.05";
|
|
}
|