nixfiles/config/hosts/emilia/configuration.nix

39 lines
921 B
Nix
Raw Permalink Normal View History

2024-06-12 16:22:17 +02:00
{ ... }:{
imports = [
../../common
../../profiles/headless.nix
../../profiles/physical.nix
../../services/forgejo.nix
../../services/nginx.nix
../../services/uptime-kuma.nix
../../services/vaultwarden.nix
./disko.nix
./hardware-configuration.nix
];
boot.initrd.kernelModules = [ "i915" ];
boot.initrd.supportedFilesystems = [ "btrfs" ];
kyouma.machine-type.physical = true;
kyouma.nginx.defaultForbidden = "uptime.kyouma.net";
2024-06-13 00:23:22 +02:00
networking = {
firewall.allowedTCPPorts = [ 80 443 ];
hostName = "emilia";
};
2024-06-12 16:22:17 +02:00
systemd.network.networks."98-eth-default" = {
2024-06-12 20:25:41 +02:00
matchConfig.MACAddress = "04:d4:c4:39:73:f6";
2024-06-12 16:22:17 +02:00
addresses = [
2024-06-12 20:25:41 +02:00
{
Address = "95.217.83.107/32";
Peer = "95.217.83.65/32";
}
{ Address = "2a01:4f9:4a:1f5f::1/64"; }
2024-06-12 16:22:17 +02:00
];
routes = [
{ Gateway = "95.217.83.65"; }
{ Gateway = "fe80::1"; }
2024-06-12 16:22:17 +02:00
];
};
}