configuration
flake
hosts
_iso
aluminium
astatine
backup-4
beryllium
carbon
clerie-backup
dn42-il-gw1
dn42-il-gw5
dn42-il-gw6
dn42-ildix-clerie
dn42-ildix-service
bird.nix
configuration.nix
fernglas.nix
hardware-configuration.nix
secrets.json
ssh.pub
gatekeeper
hydra-1
hydra-2
krypton
mail-2
monitoring-3
nonat
osmium
palladium
porter
storage-2
tungsten
web-2
zinc
lib
modules
pkgs
profiles
users
.gitignore
README.md
flake.lock
flake.nix
87 lines
2.0 KiB
Nix
87 lines
2.0 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
./hardware-configuration.nix
|
|
|
|
./bird.nix
|
|
./fernglas.nix
|
|
];
|
|
|
|
profiles.clerie.mercury-vm.enable = true;
|
|
|
|
# Use the GRUB 2 boot loader.
|
|
boot.loader.grub.enable = true;
|
|
# boot.loader.grub.efiSupport = true;
|
|
# boot.loader.grub.efiInstallAsRemovable = true;
|
|
# boot.loader.efi.efiSysMountPoint = "/boot/efi";
|
|
# Define on which hard drive you want to install Grub.
|
|
boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
|
|
|
|
systemd.network.netdevs."10-lo-dn42" = {
|
|
netdevConfig = {
|
|
Kind = "dummy";
|
|
Name = "lo-dn42";
|
|
};
|
|
};
|
|
|
|
systemd.network.networks."10-lo-dn42" = {
|
|
matchConfig.Name = "lo-dn42";
|
|
address = [
|
|
"fd81:edb3:71d8::1/128"
|
|
"fd81:edb3:71d8::53/128"
|
|
];
|
|
linkConfig.RequiredForOnline = "no";
|
|
ipv6AcceptRAConfig.DHCPv6Client = "no";
|
|
};
|
|
systemd.network.networks."10-wan" = {
|
|
matchConfig.Name = "ens20";
|
|
address = [
|
|
"2001:638:904:ffc9::c/64"
|
|
];
|
|
routes = [
|
|
{ Gateway = "2001:638:904:ffc9::1"; }
|
|
];
|
|
linkConfig.RequiredForOnline = "routable";
|
|
ipv6AcceptRAConfig.DHCPv6Client = "no";
|
|
};
|
|
systemd.network.networks."10-nat-netz-mercury" = {
|
|
matchConfig.Name = "ens18";
|
|
address = [
|
|
"192.168.10.28/24"
|
|
];
|
|
routes = [
|
|
{ Gateway = "192.168.10.1"; }
|
|
];
|
|
linkConfig.RequiredForOnline = "routable";
|
|
ipv6AcceptRAConfig.DHCPv6Client = "no";
|
|
};
|
|
systemd.network.networks."10-dn42-ildix" = {
|
|
matchConfig.Name = "ens19";
|
|
address = [
|
|
"fd81:edb3:71d8:ffff:2953::1/64"
|
|
];
|
|
linkConfig.RequiredForOnline = "no";
|
|
ipv6AcceptRAConfig.DHCPv6Client = "no";
|
|
};
|
|
|
|
services.nginx.enable = true;
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
clerie.system-auto-upgrade = {
|
|
allowReboot = true;
|
|
autoUpgrade = true;
|
|
};
|
|
|
|
clerie.monitoring = {
|
|
enable = true;
|
|
id = "391";
|
|
pubkey = "Rfu2JLxAk0seAZgt43sOEAF69Z9uQaOjeNgM4jJF0h4=";
|
|
};
|
|
|
|
system.stateVersion = "23.05";
|
|
}
|
|
|