nix/styles/server.nix
2026-08-22 23:28:20 +02:00

75 lines
1.5 KiB
Nix

{ config, pkgs, ... }:
{
imports = [ ];
virtualisation.vmVariant = {
virtualisation = {
memorySize = 8192;
cores = 6;
};
};
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.consoleLogLevel = 3;
boot.initrd.verbose = false;
boot.kernelParams = [
"quiet"
"rd.udev.log_level=3"
"rd.systemd.show_status=auto"
];
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "nl_NL.UTF-8";
LC_IDENTIFICATION = "nl_NL.UTF-8";
LC_MEASUREMENT = "nl_NL.UTF-8";
LC_MONETARY = "nl_NL.UTF-8";
LC_NAME = "nl_NL.UTF-8";
LC_NUMERIC = "nl_NL.UTF-8";
LC_PAPER = "nl_NL.UTF-8";
LC_TELEPHONE = "nl_NL.UTF-8";
LC_TIME = "nl_NL.UTF-8";
};
nixpkgs.config.allowUnfree = true;
programs.command-not-found.enable = true;
nix = {
settings = {
auto-optimise-store = true;
experimental-features = [
"nix-command"
"flakes"
];
};
};
environment.systemPackages = with pkgs; [
neovim
];
environment.shellAliases = {
vim = "nvim";
};
environment.variables.NIX_AUTO_RUN = "1";
services.openssh.enable = true;
services.fprintd.enable = true;
services.mullvad-vpn.enable = true;
networking.firewall.allowedTCPPorts = [
# open ports tcp
];
networking.firewall.allowedUDPPorts = [
# open ports udp
];
}