62 lines
1.4 KiB
Nix
62 lines
1.4 KiB
Nix
{
|
|
imports = [
|
|
./disko.nix
|
|
./hardware-configuration.nix
|
|
./smb.nix
|
|
../../nixos/roles/monitoring.nix
|
|
../../nixos/roles/wyl.nix
|
|
../../nixos/roles/adguard.nix
|
|
../../nixos/roles/unifi.nix
|
|
../../nixos/roles/searxng.nix
|
|
../../nixos/roles/filebrowser.nix
|
|
../../nixos/roles/gitea.nix
|
|
../../nixos/roles/vaultwarden.nix
|
|
../../nixos/roles/frontpage
|
|
../../nixos/roles/octoprint.nix
|
|
../../nixos/roles/matrix/postgres-backup.nix
|
|
../../nixos/roles/kanidm.nix
|
|
../../nixos/roles/ollama.nix
|
|
];
|
|
|
|
networking = {
|
|
useNetworkd = true;
|
|
useDHCP = false;
|
|
firewall.enable = true;
|
|
wireguard.interfaces.wg0 = {
|
|
ips = [ "10.10.0.2/24" ];
|
|
peers = [
|
|
{
|
|
publicKey = "NjMYaUZO/iPRM/J46qyPPuWYg5oSeAUxjocMs/hYTXs=";
|
|
endpoint = "178.254.8.35:51820";
|
|
allowedIPs = [ "10.10.0.0/24" ];
|
|
persistentKeepalive = 25;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
systemd.network = {
|
|
enable = true;
|
|
networks."10-ethernet" = {
|
|
matchConfig.Name = "enp1s0";
|
|
networkConfig = {
|
|
Address = "192.168.2.2/24";
|
|
Gateway = "192.168.2.1";
|
|
DNS = "192.168.2.2";
|
|
DHCP = "no";
|
|
};
|
|
};
|
|
};
|
|
|
|
boot.loader = {
|
|
systemd-boot = {
|
|
enable = true;
|
|
configurationLimit = 10;
|
|
editor = false;
|
|
};
|
|
efi.canTouchEfiVariables = true;
|
|
};
|
|
|
|
system.stateVersion = "26.05";
|
|
}
|