2021-11-20 01:03:57 +01:00
|
|
|
{ zentralwerk, config, pkgs, lib, ... }:
|
2021-03-12 21:45:12 +01:00
|
|
|
|
|
|
|
{
|
2022-01-09 18:05:13 +01:00
|
|
|
imports = [
|
|
|
|
./hydra.nix
|
|
|
|
./cache.nix
|
|
|
|
./updater.nix
|
|
|
|
];
|
2021-03-12 21:45:12 +01:00
|
|
|
|
|
|
|
c3d2 = {
|
|
|
|
users = {
|
|
|
|
emery = true;
|
|
|
|
windsleep = true;
|
|
|
|
};
|
|
|
|
# hq.statistics.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
security.pam.enableSSHAgentAuth = true;
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
passwordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.mosh.enable = true;
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
useSandbox = false;
|
|
|
|
maxJobs = 4;
|
|
|
|
buildCores = 20;
|
|
|
|
gc = {
|
|
|
|
automatic = true;
|
2021-10-18 22:23:11 +02:00
|
|
|
dates = lib.mkForce "06:00";
|
2021-03-12 21:45:12 +01:00
|
|
|
options = "--delete-older-than 14d";
|
|
|
|
};
|
|
|
|
sshServe.enable = true;
|
|
|
|
trustedUsers = [ "@wheel" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
tmpOnTmpfs = true;
|
|
|
|
# For cross-building
|
|
|
|
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
fsType = "rootfs";
|
|
|
|
device = "rootfs";
|
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "hydra";
|
|
|
|
firewall.enable = false;
|
|
|
|
defaultGateway = "172.20.73.1";
|
|
|
|
interfaces.eth0.ipv4.addresses = [{
|
|
|
|
address = "172.20.73.49";
|
2021-11-20 01:03:57 +01:00
|
|
|
prefixLength = zentralwerk.lib.config.site.net.serv.subnet4Len;
|
2021-03-12 21:45:12 +01:00
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
# This value determines the NixOS release with which your system is to be
|
|
|
|
# compatible, in order to avoid breaking some software such as database
|
|
|
|
# servers. You should change this only after NixOS release notes say you
|
|
|
|
# should.
|
|
|
|
system.stateVersion = "20.09"; # Did you read the comment?
|
|
|
|
}
|