Files
2026-10-02 09:01:55 +02:00

81 lines
1.4 KiB
Nix

{
config,
pkgs,
...
}: {
imports = [
./hardware-configuration.nix
./disko-config.nix
./vswitch.nix
];
boot.loader.grub = {
efiSupport = true;
efiInstallAsRemovable = true;
};
swapDevices = [
{
device = "/var/lib/swapfile";
size = 16 * 1024;
}
];
networking.hostName = "AZ-PLT-1";
networking.useNetworkd = true;
services.resolved.enable = true;
systemd.network = {
enable = true;
# Type-Match statt Name: netcup benennt das NIC je Generation anders (CLD-1: ens18, PLT-1: ens3)
networks."10-public" = {
matchConfig.Type = "ether";
networkConfig.DHCP = "yes";
};
};
networking.firewall = {
enable = true;
allowedTCPPorts = [];
allowedUDPPorts = [];
};
time.timeZone = "Europe/Berlin";
i18n.defaultLocale = "de_DE.UTF-8";
environment.systemPackages = with pkgs; [
neovim
git
ghostty
];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
services.openssh = {
enable = true;
ports = [2022];
settings = {
PermitRootLogin = "no";
PasswordAuthentication = false;
};
};
fileSystems."/var/storage" = {
device = "46.38.248.210:/voln1265007a1";
fsType = "nfs";
options = [
"nfsvers=3"
"nolock"
"nofail"
"x-systemd.automount"
"x-systemd.idle-timeout=60"
];
};
system.stateVersion = "26.05";
}