From 65998ded0fb9098279ffcd90e5bd64ed4f9cfca4 Mon Sep 17 00:00:00 2001 From: Amir Omidi Date: Tue, 26 Nov 2024 02:03:11 -0500 Subject: [PATCH] Don't hardcode the path --- src/action/macos/encrypt_apfs_volume.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/action/macos/encrypt_apfs_volume.rs b/src/action/macos/encrypt_apfs_volume.rs index c48233ba4..bced91ad9 100644 --- a/src/action/macos/encrypt_apfs_volume.rs +++ b/src/action/macos/encrypt_apfs_volume.rs @@ -42,7 +42,7 @@ impl EncryptApfsVolume { command.args(["find-generic-password", "-a"]); command.arg(&name); command.arg("-s"); - command.arg("Nix Store"); + command.arg(&name); command.arg("-l"); command.arg(format!("{} encryption password", disk.display())); command.arg("-D"); @@ -186,7 +186,7 @@ impl Action for EncryptApfsVolume { "-a", self.name.as_str(), "-s", - "Nix Store", + self.name.as_str(), "-l", format!("{} encryption password", disk_str).as_str(), "-D",