2022-08-21 22:53:04 +00:00
|
|
|
{
|
2023-04-01 13:47:37 +00:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
imports = [
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
./hardware-configuration.nix
|
2023-10-05 22:22:12 +00:00
|
|
|
./home-controller.nix
|
2023-04-01 13:47:37 +00:00
|
|
|
];
|
2022-08-21 22:53:04 +00:00
|
|
|
|
2023-11-10 14:41:48 +00:00
|
|
|
pub-solar.core.disk-encryption-active = false;
|
|
|
|
|
|
|
|
networking.networkmanager.enable = lib.mkForce false;
|
|
|
|
|
2022-08-21 22:53:04 +00:00
|
|
|
# Use the GRUB 2 boot loader.
|
|
|
|
boot.loader.grub.enable = true;
|
|
|
|
boot.loader.grub.version = 2;
|
|
|
|
boot.loader.grub.device = "/dev/disk/by-id/usb-HP_iLO_Internal_SD-CARD_000002660A01-0:0";
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
2023-04-01 13:47:37 +00:00
|
|
|
networking.interfaces.eno1.useDHCP = true;
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
|
|
networking.nat.enable = true;
|
2023-04-01 13:47:37 +00:00
|
|
|
networking.nat.internalIPs = ["10.10.42.0/24"];
|
2022-08-21 22:53:04 +00:00
|
|
|
networking.nat.externalInterface = "eno1";
|
|
|
|
|
2023-04-01 13:47:37 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [80 443 22];
|
|
|
|
networking.firewall.allowedUDPPorts = [51899];
|
2022-08-21 22:53:04 +00:00
|
|
|
|
|
|
|
networking.firewall.enable = lib.mkForce true;
|
|
|
|
|
|
|
|
system.stateVersion = "21.05"; # Did you read the comment?
|
|
|
|
}
|