nix-config/hosts/hydra/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

57 lines
1.2 KiB
Nix
Raw Normal View History

{ zentralwerk, config, pkgs, lib, ... }:
2021-03-12 21:45:12 +01:00
{
imports = [
2022-05-05 22:34:51 +02:00
./hardware-configuration.nix
2022-06-23 20:10:03 +02:00
./network.nix
./hydra.nix
./updater.nix
2022-09-28 21:10:09 +02:00
../../modules/c3d2.nix
];
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;
settings = {
2022-12-04 06:36:57 +01:00
# # restore default overridden by harmonia
# allowed-users = lib.mkForce [ "*" ];
auto-optimise-store = true;
cores = 20;
keep-outputs = true;
max-jobs = 8;
2022-12-04 06:36:57 +01:00
trusted-users = [ "@wheel" ];
};
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;
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?
}