2023-10-08 20:26:20 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with builtins;
|
|
|
|
|
|
|
|
rec {
|
|
|
|
networking.hostName = "dcr03s16";
|
|
|
|
# TODO: undefine fqdn and define domain after big nix change
|
|
|
|
hscloud.base.fqdn = "${networking.hostName}.hswaw.net";
|
|
|
|
#networking.domain = "hswaw.net";
|
|
|
|
system.stateVersion = "22.05";
|
|
|
|
nix.maxJobs = 48;
|
|
|
|
|
|
|
|
boot.initrd.kernelModules = [ "dm-raid" ];
|
|
|
|
|
|
|
|
fileSystems."/".device = "/dev/vg-nixos-hscloud/nixos-root";
|
|
|
|
#services.lvm.enable = true;
|
|
|
|
fileSystems."/boot1" =
|
|
|
|
{ device = "/dev/disk/by-partuuid/4aaabcc2-6efa-499d-890a-553228917416";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
fileSystems."/boot2" =
|
|
|
|
{ device = "/dev/disk/by-partuuid/cd6c0ffb-0119-4dce-a15a-ad5639eb5eb1";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = false;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
version = 2;
|
|
|
|
efiSupport = true;
|
|
|
|
mirroredBoots = [
|
|
|
|
{ devices = [ "nodev" ]; path = "/boot1"; efiSysMountPoint = "/boot1"; }
|
|
|
|
{ devices = [ "nodev" ]; path = "/boot2"; efiSysMountPoint = "/boot2"; }
|
|
|
|
];
|
|
|
|
};
|
|
|
|
environment.etc."lvm/lvm.conf".text = ''
|
|
|
|
devices/issue_discards = 1
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
hscloud.base = {
|
|
|
|
mgmtIf = "enp5s0";
|
|
|
|
ipAddr = "185.236.240.45";
|
|
|
|
ipAddrBits = 28;
|
|
|
|
gw = "185.236.240.33";
|
|
|
|
};
|
|
|
|
hscloud.kube = {
|
2023-10-09 19:02:07 +00:00
|
|
|
control.enable = true;
|
2023-10-08 20:26:20 +00:00
|
|
|
data.enable = true;
|
|
|
|
data.podNet = "10.10.21.0/24";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|