From cc63cacf28b4eaf780689c1c1941dc755c298d55 Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 22 Oct 2022 05:47:17 -0700 Subject: [PATCH] new script to unlock ~/private --- pkgs/sane-scripts/src/sane-private-unlock | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 pkgs/sane-scripts/src/sane-private-unlock diff --git a/pkgs/sane-scripts/src/sane-private-unlock b/pkgs/sane-scripts/src/sane-private-unlock new file mode 100755 index 00000000..622b1701 --- /dev/null +++ b/pkgs/sane-scripts/src/sane-private-unlock @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +set -ex + +# configure persistent, encrypted storage that is auto-mounted on login. +# this is a one-time setup and user should log out/back in after running it. + +mount=/home/colin/private +cipher="/nix/persist$mount" +gocryptfs "$cipher" "$mount"