nix-config/hosts/server9/default.nix

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

56 lines
1.0 KiB
Nix
Raw Normal View History

2022-12-04 08:53:28 +01:00
_:
2022-06-18 01:07:43 +02:00
{
imports = [
./hardware-configuration.nix
];
c3d2 = {
deployment.microvmBaseZfsDataset = "tank/storage";
hq.statistics.enable = true;
simd.arch = "westmere";
};
boot = {
2022-06-18 01:07:43 +02:00
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";
};
2022-06-18 02:36:36 +02:00
# required by libvirtd
security.polkit.enable = true;
2022-06-29 20:04:57 +02:00
services = {
openssh.enable = true;
smartd.enable = true;
zfs.autoScrub.enable = true;
};
skyflake.nomad.client.meta."c3d2.cpuSpeed" = "3";
2022-06-21 14:10:59 +02:00
system.stateVersion = "21.11";
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
}