[host/murex-pecten] Utilize existing 3TB harddrive for games

This commit is contained in:
Malte Tammena 2022-03-08 09:58:17 +01:00
parent c1bcb58e32
commit db90c777a1

View file

@ -3,30 +3,46 @@
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "dm-snapshot" ];
boot.initrd.luks.devices."enc".device =
"/dev/disk/by-uuid/037d5dc5-17c3-4643-9ad8-7403d280b191";
boot = {
initrd = {
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
availableKernelModules =
[ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
kernelModules = [ "dm-snapshot" ];
luks.devices."enc".device =
"/dev/disk/by-uuid/037d5dc5-17c3-4643-9ad8-7403d280b191";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/58415934-fb8e-4e36-996e-ddb61d24602a";
fsType = "btrfs";
options = [ "subvol=nixos" ];
kernelModules = [ "kvm-amd" ];
extraModulePackages = [ ];
};
fileSystems."/home" = {
device = "/dev/disk/by-uuid/58415934-fb8e-4e36-996e-ddb61d24602a";
fsType = "btrfs";
options = [ "subvol=home" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/6B2D-BD5B";
fsType = "vfat";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/58415934-fb8e-4e36-996e-ddb61d24602a";
fsType = "btrfs";
options = [ "subvol=nixos" ];
};
"/boot" = {
device = "/dev/disk/by-uuid/6B2D-BD5B";
fsType = "vfat";
};
"/home" = {
device = "/dev/disk/by-uuid/58415934-fb8e-4e36-996e-ddb61d24602a";
fsType = "btrfs";
options = [ "subvol=home" ];
};
"/home/games" = rec {
device = "/dev/mapper/${encrypted.label}";
fsType = "btrfs";
options = [ "subvol=malte/games" ];
encrypted = {
enable = true;
label = "luks-media";
blkDev = "/dev/disk/by-uuid/a2a4dc77-579b-4e09-ad59-6d956c168eca";
keyFile = "/mnt-root/root/luks/luks-media.key";
};
};
};
swapDevices =