forked from hswaw/hscloud
42 lines
1.3 KiB
Nix
42 lines
1.3 KiB
Nix
{ config, pkgs, ... }:
|
|
|
|
with builtins;
|
|
|
|
rec {
|
|
networking.hostName = "dcr01s22";
|
|
# TODO: undefine fqdn and define domain after big nix change
|
|
hscloud.base.fqdn = "${networking.hostName}.hswaw.net";
|
|
#networking.domain = "hswaw.net";
|
|
system.stateVersion = "19.09";
|
|
nix.maxJobs = 48;
|
|
|
|
boot.loader.grub.device = "/dev/disk/by-id/ata-Samsung_SSD_860_EVO_250GB_S3YJNX1M604518E";
|
|
fileSystems."/".device = "/dev/disk/by-uuid/b4149083-49fe-4951-a143-aff4cedaf33a";
|
|
|
|
hscloud.base = {
|
|
mgmtIf = "enp130s0f0";
|
|
ipAddr = "185.236.240.39";
|
|
ipAddrBits = 28;
|
|
gw = "185.236.240.33";
|
|
};
|
|
|
|
hscloud.kube = {
|
|
control.enable = true;
|
|
data.enable = true;
|
|
data.podNet = "10.10.19.0/24";
|
|
};
|
|
|
|
hscloud.ceph = {
|
|
name = "k0";
|
|
fsid = "74592dc2-31b7-4dbe-88cf-40459dfeb354";
|
|
|
|
osd.devices = [
|
|
{ id = 0; path = "/dev/disk/by-id/scsi-35000c500850293e3"; uuid = "314034c5-474c-4d0d-ba41-36a881c52560";}
|
|
{ id = 1; path = "/dev/disk/by-id/scsi-35000c500850312cb"; uuid = "a7f1baa0-0fc3-4ab1-9895-67abdc29de03";}
|
|
{ id = 2; path = "/dev/disk/by-id/scsi-35000c5008508e3ef"; uuid = "11ac8316-6a87-48a7-a0c7-74c3cef6c2fa";}
|
|
{ id = 3; path = "/dev/disk/by-id/scsi-35000c5008508e23f"; uuid = "c6b838d1-b08c-4788-936c-293041ed2d4d";}
|
|
];
|
|
};
|
|
}
|
|
|