45 lines
731 B
Nix
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;
|
|
}
|