Skip to content

Commit 9d4c180

Browse files
committed
feat: remove bitlocker mounts from boot chain & mount only on use
Signed-off-by: Reputable2722 <153411261+Reputable2772@users.noreply.github.com>
1 parent 22f142f commit 9d4c180

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

System/Lenovo-Laptop/Misc/bitlocker.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ in
3333
n: v:
3434
nameValuePair "bitlocker-${n}" {
3535
description = "Unlock ${n} BitLocker volume";
36-
wantedBy = [ "multi-user.target" ];
3736
after = [
3837
"local-fs.target"
3938
"agenix.service"
@@ -67,10 +66,13 @@ in
6766
inherit (v) fsType;
6867
options = [
6968
"rw"
69+
"noauto"
7070
"uid=1000"
7171
"gid=100"
7272
"x-systemd.after=bitlocker-${n}.service"
7373
"x-systemd.requires=bitlocker-${n}.service"
74+
"x-systemd.automount"
75+
"x-systemd.idle-timeout=5min"
7476
]
7577
++ lib.optional v.nofail "nofail";
7678
}

0 commit comments

Comments
 (0)