Files
nixos-config/hosts/configuration_server.nix
2026-04-26 10:27:50 +02:00

45 lines
731 B
Nix

#
# Server configuration. Imports configuration_common.nix for shared settings.
# Service modules are imported per-host.
#
{
config,
lib,
pkgs,
inputs,
user,
location,
agenix,
...
}: {
imports = [
./configuration_common.nix
];
users.users.${user} = {
isNormalUser = true;
uid = 3000;
extraGroups = ["wheel" "networkmanager" "kvm" "libvirtd"];
};
security.sudo.wheelNeedsPassword = true;
environment.systemPackages = with pkgs; [
ffmpeg
smartmontools
htop
];
services.openssh = {
ports = [2220];
openFirewall = true;
};
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
system.autoUpgrade.enable = true;
}