infrastructure/systems/kasen/nixos.nix
2024-09-09 10:23:09 -07:00

60 lines
1.1 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";
};
swapDevices = [
{
device = "/swap0";
size = 4096;
}
];
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";
};
};
};
system.stateVersion = "24.05";
}