forked from pub-solar/os
43 lines
1,015 B
Nix
43 lines
1,015 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports =
|
|
[
|
|
# Include the results of the hardware scan.
|
|
./hardware-configuration.nix
|
|
./acme.nix
|
|
./home-assistant.nix
|
|
./nextcloud.nix
|
|
./wireguard.nix
|
|
];
|
|
|
|
# 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";
|
|
|
|
networking = {
|
|
useDHCP = false;
|
|
|
|
interfaces.eno1.ipv4.addresses = [{
|
|
address = "80.244.242.2";
|
|
prefixLength = 29;
|
|
}];
|
|
|
|
defaultGateway = "80.244.242.1";
|
|
nameservers = [ "95.129.51.51" "80.244.244.244" ];
|
|
};
|
|
|
|
services.openssh.ports = [ 2222 ];
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 2222 ];
|
|
networking.firewall.allowedUDPPorts = [ 51899 ];
|
|
networking.firewall.enable = lib.mkForce true;
|
|
|
|
system.stateVersion = "21.05"; # Did you read the comment?
|
|
}
|