Files
nixos-config/hosts/configuration_server.nix
2026-04-23 20:08:25 +02:00

39 lines
721 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;
}