server/configuration.nix
2026-03-28 18:26:22 +01:00

45 lines
978 B
Nix

{pkgs, ...}: {
boot.loader.grub = {
enable = true;
device = "/dev/sda";
};
networking.hostName = "prin-server"; # Define your hostname.
# Configure network connections interactively with nmcli or nmtui.
networking.networkmanager.enable = true;
# Set your time zone.
time.timeZone = "Europe/Amsterdam";
users.users.prever = {
isNormalUser = true;
extraGroups = ["wheel"];
packages = with pkgs; [
git
tree
];
};
environment.systemPackages = with pkgs; [
wget
];
services.openssh.enable = true;
networking.firewall.allowedTCPPorts = [22 80 443];
# networking.firewall.allowedUDPPorts = [ ... ];
nix = {
settings.experimental-features = ["nix-command" "flakes"];
optimise.automatic = true;
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
home-manager.users.prever.home.stateVersion = "25.11";
system.stateVersion = "25.11";
}