From f06a02251af4a3b338619303d571916438e40cad Mon Sep 17 00:00:00 2001 From: Felix Tenley Date: Sat, 13 Mar 2021 12:51:16 +0100 Subject: [PATCH] feat(rpi4): add media mount --- hardware/rpi4.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/hardware/rpi4.nix b/hardware/rpi4.nix index fbbf0b3..66f8994 100644 --- a/hardware/rpi4.nix +++ b/hardware/rpi4.nix @@ -6,6 +6,9 @@ boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + boot.initrd.luks.devices."enc-media".device = + "/dev/disk/by-uuid/47158a41-995a-45d5-b7e1-1dc6e1868be7"; + fileSystems."/boot" = { device = "/dev/disk/by-label/NIXOS_BOOT"; fsType = "vfat"; @@ -16,6 +19,18 @@ fsType = "ext4"; }; + fileSystems."/media" = { + device = "/dev/disk/by-uuid/2441d724-7f8e-4bbb-a50f-9074f3d0d3f1"; + fsType = "btrfs"; + options = [ "subvol=@" "compress-force=zstd" "noatime" ]; + }; + + fileSystems."/media/.snapshots" = { + device = "/dev/disk/by-uuid/2441d724-7f8e-4bbb-a50f-9074f3d0d3f1"; + fsType = "btrfs"; + options = [ "subvol=@snapshots" "compress-force=zstd" "noatime" ]; + }; + swapDevices = [ ]; powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";