nix-config/hosts/server9/default.nix

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

39 lines
780 B
Nix
Raw Normal View History

2022-06-18 01:07:43 +02:00
{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
];
boot= {
loader.grub = {
enable = true;
version = 2;
2022-06-21 14:11:31 +02:00
device = "/dev/sdc";
2022-06-18 01:07:43 +02:00
};
# kernelPackages = config.boot.zfs.package.latestCompatibleLinuxPackages;
kernelParams = [
"preempt=none"
# No server/router runs any untrusted user code
"mitigations=off"
];
tmpOnTmpfs = true;
tmpOnTmpfsSize = "80%";
};
networking = {
hostName = "server9";
hostId = "09090909";
};
system.stateVersion = "21.11";
services.openssh.enable = true;
2022-06-18 02:36:36 +02:00
c3d2.hq.statistics.enable = true;
2022-06-21 14:10:59 +02:00
# XXX: enable for zw-ev and poelzi-ha until we find a better solution
virtualisation.libvirtd = {
enable = true;
onShutdown = "shutdown";
};
2022-06-18 01:07:43 +02:00
}