Skip to content
Snippets Groups Projects
Commit 87133a90 authored by Jehad's avatar Jehad
Browse files

redployment of storage003

parent e9a2cec7
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
, "publicKeyPath": "./public-keys" , "publicKeyPath": "./public-keys"
, "monitoringvpnEndpoint": "monitoring.deerfield.leastauthority.com:51820" , "monitoringvpnEndpoint": "monitoring.deerfield.leastauthority.com:51820"
, "passValue": 1000000 , "passValue": 1000000
, "tokensPerVoucher": 150000
, "issuerDomains": [ , "issuerDomains": [
"payments.deerfield.leastauthority.com" "payments.deerfield.leastauthority.com"
] ]
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"prefixLength" = 24; "prefixLength" = 24;
"gateway" = "151.80.28.254"; "gateway" = "151.80.28.254";
"gatewayInterface" = "eno3"; "gatewayInterface" = "eno3";
"grubDeviceID" = "nodev"; #"grubDeviceID" = "nodev";
#"grubDeviceID" = "nvme-eui.e8238fa6bf530001001b448b463b77bf"; "grubDeviceID" = "nvme-eui.e8238fa6bf530001001b448b463b77bf";
"systemd-boot" = true; "systemd-boot" = true;
} }
...@@ -8,34 +8,26 @@ ...@@ -8,34 +8,26 @@
[ (modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ehci_pci" "megaraid_sas" "usbhid" ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
boot.supportedFilesystems = [ "zfs" ]; boot.supportedFilesystems = [ "zfs" ];
boot.kernel.sysctl = { "vm.swappiness" = 0; };
fileSystems."/" = fileSystems."/" =
{ device = "/dev/disk/by-uuid/56a050e2-daee-40e2-becb-17d1f7908ceb"; { device = "/dev/disk/by-uuid/8f88c0f1-3aef-41ec-bfd7-55b4ba6c1341";
fsType = "ext4"; fsType = "ext4";
}; };
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/B89B-F110"; { device = "/dev/disk/by-uuid/23DC-4051";
fsType = "vfat"; fsType = "vfat";
}; };
# Manually created using:
# zpool create -f -m legacy -o ashift=12 root raidz /dev/disk/by-id/{wwn-0x5000cca249d43969,wwn-0x5000039a8bc0075e,wwn-0x5000cca249d44a67,wwn-0x5000cca249d46730,wwn-0x5000cca25dcc719c,wwn-0x5000cca25dcc0241,wwn-0x5000039a8bc00765}
fileSystems."/storage" =
{ device = "root";
fsType = "zfs";
};
swapDevices = swapDevices =
[ { device = "/dev/disk/by-uuid/e47cfddc-485c-46fb-9004-c9b8619b81ff"; } [ { device = "/dev/disk/by-uuid/b02af75a-ea3a-47cf-ad40-c6611ee4dc09"; }
]; ];
fileSystems."/storage" = {
nix.maxJobs = lib.mkDefault 24; device = "root";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; fsType = "zfs";
};
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }
...@@ -58,6 +58,7 @@ in { ...@@ -58,6 +58,7 @@ in {
inherit (config.grid) letsEncryptAdminEmail; inherit (config.grid) letsEncryptAdminEmail;
inherit allowedChargeOrigins; inherit allowedChargeOrigins;
domains = issuerDomains; domains = issuerDomains;
tokensPerVoucher = 150000;
}; };
services.private-storage.monitoring.exporters.node.enable = true; services.private-storage.monitoring.exporters.node.enable = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment