server_config/system.nix
2026-02-03 13:22:21 +01:00

50 lines
1.1 KiB
Nix

{ config, pkgs, ... }:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.tmp.cleanOnBoot = true;
networking.hostName = "server";
networking.networkmanager.enable = true;
services.openssh.enable = true;
services.journald.extraConfig = "SystemMaxUse=500M";
users.users.daniel = {
isNormalUser = true;
description = "Daniel Kauss Serna";
extraGroups = [ "networkmanager" "wheel" ];
packages = [];
};
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
system.stateVersion = "25.11";
time.timeZone = "Europe/Madrid";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "es_ES.UTF-8";
LC_IDENTIFICATION = "es_ES.UTF-8";
LC_MEASUREMENT = "es_ES.UTF-8";
LC_MONETARY = "es_ES.UTF-8";
LC_NAME = "es_ES.UTF-8";
LC_NUMERIC = "es_ES.UTF-8";
LC_PAPER = "es_ES.UTF-8";
LC_TELEPHONE = "es_ES.UTF-8";
LC_TIME = "es_ES.UTF-8";
};
console.keyMap = "de";
services.xserver.xkb = {
layout = "de";
};
}