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 = [
|
2022-05-05 22:34:51 +02:00
|
|
|
./hardware-configuration.nix
|
2022-06-23 20:10:03 +02:00
|
|
|
./network.nix
|
2022-01-09 18:05:13 +01:00
|
|
|
./hydra.nix
|
|
|
|
./updater.nix
|
2022-09-28 21:10:09 +02:00
|
|
|
../../modules/c3d2.nix
|
2022-01-09 18:05:13 +01:00
|
|
|
];
|
2021-03-12 21:45:12 +01:00
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
|
|
security.pam.enableSSHAgentAuth = true;
|
|
|
|
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
passwordAuthentication = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.mosh.enable = true;
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
sshServe.enable = true;
|
2022-07-16 01:00:06 +02:00
|
|
|
settings = {
|
2022-12-04 06:36:57 +01:00
|
|
|
# # restore default overridden by harmonia
|
|
|
|
# allowed-users = lib.mkForce [ "*" ];
|
2022-09-21 21:31:30 +02:00
|
|
|
auto-optimise-store = true;
|
|
|
|
cores = 20;
|
2022-07-16 01:00:06 +02:00
|
|
|
keep-outputs = true;
|
2022-09-21 21:31:30 +02:00
|
|
|
max-jobs = 8;
|
2022-12-04 06:36:57 +01:00
|
|
|
trusted-users = [ "@wheel" ];
|
2022-07-16 01:00:06 +02:00
|
|
|
};
|
2021-03-12 21:45:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
boot = {
|
|
|
|
tmpOnTmpfs = true;
|
2022-05-07 00:49:33 +02:00
|
|
|
tmpOnTmpfsSize = "80%";
|
2022-06-23 22:02:40 +02:00
|
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
2022-05-05 22:34:51 +02:00
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
|
|
kernelParams = [ "mitigations=off" "preempt=none" ];
|
2021-03-12 21:45:12 +01:00
|
|
|
# For cross-building
|
2022-05-05 22:34:51 +02:00
|
|
|
binfmt.emulatedSystems = [ "armv6l-linux" "armv7l-linux" "aarch64-linux" "riscv32-linux" "riscv64-linux" ];
|
2021-03-12 21:45:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "hydra";
|
|
|
|
firewall.enable = false;
|
2022-05-05 22:34:51 +02:00
|
|
|
nameservers = [ "172.20.73.8" "9.9.9.9" ];
|
2021-03-12 21:45:12 +01:00
|
|
|
};
|
2022-01-10 03:36:31 +01:00
|
|
|
|
2022-05-07 01:34:27 +02:00
|
|
|
c3d2.hq.statistics.enable = true;
|
2022-07-10 03:01:29 +02:00
|
|
|
services.smartd.enable = true;
|
2022-05-07 01:34:27 +02:00
|
|
|
|
2021-03-12 21:45:12 +01:00
|
|
|
system.stateVersion = "20.09"; # Did you read the comment?
|
|
|
|
}
|