2024-06-25 10:54:31 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2024-10-27 10:47:35 +01:00
|
|
|
deployment = {
|
|
|
|
targetHost = "son.kat";
|
|
|
|
tags = [ "kat-vms" ];
|
|
|
|
};
|
|
|
|
|
2024-06-25 10:54:31 +02:00
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
./disks.nix
|
|
|
|
];
|
|
|
|
|
2024-10-27 10:47:35 +01:00
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
kernelParams = [ "console=ttyS0" ];
|
2024-10-03 17:42:38 +02:00
|
|
|
};
|
2024-06-25 10:54:31 +02:00
|
|
|
|
2024-10-27 10:47:35 +01:00
|
|
|
kat = {
|
|
|
|
fqdn = "son.katvayor.net";
|
|
|
|
proxies.ip = "192.168.122.5";
|
|
|
|
};
|
2024-10-20 18:52:05 +02:00
|
|
|
|
2024-10-20 15:11:00 +02:00
|
|
|
systemd.network.enable = lib.mkForce false;
|
2024-06-25 10:54:31 +02:00
|
|
|
networking = {
|
2024-10-03 17:42:38 +02:00
|
|
|
useNetworkd = lib.mkForce false;
|
2024-06-25 10:54:31 +02:00
|
|
|
interfaces."enp1s0" = {
|
|
|
|
useDHCP = false;
|
|
|
|
ipv4.addresses = [
|
|
|
|
{
|
|
|
|
address = "192.168.122.5";
|
|
|
|
prefixLength = 24;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
ipv6.addresses = [
|
|
|
|
{
|
|
|
|
address = "fe80::5";
|
|
|
|
prefixLength = 64;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
defaultGateway = "192.168.122.1";
|
|
|
|
defaultGateway6 = {
|
|
|
|
address = "fe80::1";
|
|
|
|
interface = "enp1s0";
|
|
|
|
};
|
|
|
|
nameservers = [
|
|
|
|
"192.168.122.1"
|
|
|
|
"fe80::1%enp1s0"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.enable = false;
|
|
|
|
|
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "root@katvayor.net";
|
|
|
|
};
|
2024-10-27 10:47:35 +01:00
|
|
|
services = {
|
|
|
|
openssh.enable = true;
|
|
|
|
qemuGuest.enable = true;
|
|
|
|
nginx = {
|
|
|
|
enable = true;
|
|
|
|
virtualHosts = {
|
|
|
|
"son.katvayor.net" = {
|
|
|
|
enableACME = true;
|
|
|
|
addSSL = true;
|
|
|
|
};
|
2024-06-25 10:54:31 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-10-03 17:42:38 +02:00
|
|
|
system.stateVersion = "23.11";
|
2024-06-25 10:54:31 +02:00
|
|
|
}
|