64 lines
1.4 KiB
Nix
64 lines
1.4 KiB
Nix
{ config, ... }:
|
|
|
|
{
|
|
imports = [
|
|
./hardware-configuration.nix
|
|
];
|
|
|
|
c3d2 = {
|
|
# deployment.microvmBaseZfsDataset = "tank/storage";
|
|
hq.statistics.enable = true;
|
|
};
|
|
|
|
boot = {
|
|
loader.systemd-boot-enable = true;
|
|
kernelParams = [
|
|
"preempt=none"
|
|
# No server/router runs any untrusted user code
|
|
"mitigations=off"
|
|
];
|
|
tmpOnTmpfs = true;
|
|
tmpOnTmpfsSize = "80%";
|
|
};
|
|
|
|
networking = {
|
|
hostName = "server7";
|
|
hostId = "07070707";
|
|
};
|
|
|
|
services = {
|
|
openssh.enable = true;
|
|
smartd.enable = true;
|
|
};
|
|
|
|
# TODO:
|
|
# simd.arch = "westmere";
|
|
|
|
sops = {
|
|
# defaultSopsFile = ./secrets.yaml;
|
|
# secrets."machine-id" = {
|
|
# mode = "444";
|
|
# path = "/etc/machine-id";
|
|
# };
|
|
# secrets."ceph/osd.1/keyfile" = {};
|
|
# secrets."ceph/osd.2/keyfile" = {};
|
|
};
|
|
|
|
skyflake.nomad.client.meta."c3d2.cpuSpeed" = "5";
|
|
# skyflake.storage.ceph.osds = [ {
|
|
# id = 1;
|
|
# fsid = "4b196252-efb6-4ad2-9e9b-cc3fcd664a3a";
|
|
# path = "/dev/zvol/server7_root/ceph-osd.1";
|
|
# keyfile = config.sops.secrets."ceph/osd.1/keyfile".path;
|
|
# deviceClass = "ssd";
|
|
# } {
|
|
# id = 2;
|
|
# fsid = "b860ec59-3314-4fd1-be45-35a46fd8c059";
|
|
# path = "/dev/zvol/server7_hdd/ceph-osd.2";
|
|
# keyfile = config.sops.secrets."ceph/osd.2/keyfile".path;
|
|
# deviceClass = "hdd";
|
|
# } ];
|
|
|
|
system.stateVersion = "22.11";
|
|
}
|