mirror of
https://gerrit.hackerspace.pl/hscloud
synced 2025-01-16 22:23:54 +00:00
Change-Id: Ib93fd85d0b09177d6e29bc3b4d68b999a1db3eaa Reviewed-on: https://gerrit.hackerspace.pl/c/hscloud/+/1994 Reviewed-by: q3k <q3k@hackerspace.pl>
55 lines
1.4 KiB
Nix
55 lines
1.4 KiB
Nix
{ 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;
|
|
|
|
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"; }
|
|
];
|
|
};
|
|
|
|
# Tape stuff
|
|
environment.systemPackages = with pkgs; [
|
|
lsscsi mt-st mtx mbuffer sg3_utils
|
|
];
|
|
boot.kernelModules = ["sg"];
|
|
|
|
|
|
hscloud.base = {
|
|
mgmtIf = "enp5s0";
|
|
ipAddr = "185.236.240.45";
|
|
ipAddrBits = 28;
|
|
gw = "185.236.240.33";
|
|
};
|
|
hscloud.kube = {
|
|
control.enable = true;
|
|
data.enable = true;
|
|
data.podNet = "10.10.21.0/24";
|
|
};
|
|
}
|
|
|