From c4f6bd926eb74a16ac781be56f578208639b780e Mon Sep 17 00:00:00 2001 From: clerie <git@clerie.de> Date: Tue, 25 Feb 2025 18:14:35 +0100 Subject: [PATCH] hosts/tungsten: Add storage --- hosts/tungsten/hardware-configuration.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/tungsten/hardware-configuration.nix b/hosts/tungsten/hardware-configuration.nix index ccf37e5..3d8d886 100644 --- a/hosts/tungsten/hardware-configuration.nix +++ b/hosts/tungsten/hardware-configuration.nix @@ -8,7 +8,7 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "usb_storage" "usbhid" "sd_mod" ]; + boot.initrd.availableKernelModules = [ "ahci" "ohci_pci" "ehci_pci" "usbhid" "sd_mod" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; @@ -25,6 +25,13 @@ fsType = "ext4"; }; + fileSystems."/mnt/storage-tungsten" = + { device = "/dev/disk/by-uuid/3d386e15-9d64-42a6-8d6d-571272d5e78e"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."crypt-storage-tungsten".device = "/dev/disk/by-uuid/e4142245-4c69-42e6-9b1f-fa4dc7fef7d8"; + swapDevices = [ ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking