2024-10-11 17:14:39 +02:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
# CLI
|
|
|
|
../../modules/system/cli/common.nix
|
|
|
|
../../modules/system/cli/docker.nix
|
|
|
|
|
|
|
|
# Hardware
|
|
|
|
../../modules/system/hardware/firewall.nix
|
|
|
|
../../modules/system/hardware/garbage-collection.nix
|
|
|
|
../../modules/system/hardware/locale.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
nix.settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Bootloader.
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
|
|
|
networking.hostName = "pm01vm01"; # Define your hostname.
|
|
|
|
|
|
|
|
users.users.xeovalyte = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Timo Boomers";
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Enable ssh
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
2024-10-13 17:05:00 +02:00
|
|
|
# Forward ports
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 80 443 53 ];
|
|
|
|
allowedUDPPorts = [ 53 ];
|
|
|
|
};
|
2024-10-11 17:14:39 +02:00
|
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
|
|
|
|
}
|