summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/kansai/hardware-configuration.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/hosts/kansai/hardware-configuration.nix b/hosts/kansai/hardware-configuration.nix
index 9128f0a..c253822 100644
--- a/hosts/kansai/hardware-configuration.nix
+++ b/hosts/kansai/hardware-configuration.nix
@@ -7,6 +7,7 @@
}:
let
nixosDevice = "/dev/disk/by-uuid/59148bdd-ecb1-49a0-beec-89d0adf909ae";
+ plexMountName = "plex";
commonOptions = [
"noatime"
@@ -78,8 +79,8 @@ in
];
};
- "/mnt/plex" = {
- device = "/dev/mapper/plex";
+ "/mnt/${plexMountName}" = {
+ device = "/dev/mapper/${plexMountName}";
fsType = "exfat";
options = [
@@ -93,6 +94,10 @@ in
};
};
+ environment.etc.crypttab.text = ''
+ ${plexMountName} /dev/disk/by-partlabel/WD_BLACK ${config.sops.secrets.plex_drive_bitlocker_recovery_key.path} bitlk
+ '';
+
swapDevices = [ ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";