60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ zentralwerk, config, pkgs, lib, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
./hydra.nix
|
|
./cache.nix
|
|
./updater.nix
|
|
../../config/c3d2.nix
|
|
];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
security.pam.enableSSHAgentAuth = true;
|
|
|
|
services.openssh = {
|
|
enable = true;
|
|
passwordAuthentication = false;
|
|
};
|
|
|
|
programs.mosh.enable = true;
|
|
|
|
nix = {
|
|
useSandbox = false;
|
|
maxJobs = 4;
|
|
buildCores = 16;
|
|
autoOptimiseStore = true;
|
|
sshServe.enable = true;
|
|
trustedUsers = [ "@wheel" ];
|
|
};
|
|
|
|
boot = {
|
|
tmpOnTmpfs = true;
|
|
tmpOnTmpfsSize = "80%";
|
|
kernelModules = [ "kvm-intel" ];
|
|
kernelParams = [ "mitigations=off" "preempt=none" ];
|
|
# For cross-building
|
|
binfmt.emulatedSystems = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "riscv32-linux" "riscv64-linux" ];
|
|
};
|
|
|
|
networking = {
|
|
hostName = "hydra";
|
|
firewall.enable = false;
|
|
defaultGateway = "172.20.73.1";
|
|
interfaces.enp3s0 = {
|
|
useDHCP = false;
|
|
tempAddress = "disabled";
|
|
ipv4.addresses = [{
|
|
address = "172.20.73.49";
|
|
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
|
|
}];
|
|
};
|
|
nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
|
};
|
|
|
|
c3d2.hq.statistics.enable = true;
|
|
|
|
system.stateVersion = "20.09"; # Did you read the comment?
|
|
}
|