From 7285adfea8b2cafd5ca5d4b36db853f5e8bfb39b Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Mon, 13 Apr 2026 16:19:33 +0200 Subject: [PATCH] cryptroot open --- modules/nixos/bin-bash-wrapper.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/nixos/bin-bash-wrapper.nix b/modules/nixos/bin-bash-wrapper.nix index cc0716f..3068129 100644 --- a/modules/nixos/bin-bash-wrapper.nix +++ b/modules/nixos/bin-bash-wrapper.nix @@ -9,6 +9,9 @@ let bashWrapper = pkgs.writeShellScriptBin "bash" '' exec /usr/bin/env bash "$@" ''; + cryptrootUnlockWrapper = pkgs.writeShellScriptBin "cryptroot-unlock" '' + exec /run/current-system/sw/bin/systemd-tty-ask-password-agent --query --watch "$@" + ''; in { options.my.binBashWrapper.enable = lib.mkEnableOption "create a /bin/bash wrapper"; @@ -16,6 +19,7 @@ in config = lib.mkIf cfg.enable { systemd.tmpfiles.rules = [ "L+ /bin/bash - - - - ${bashWrapper}/bin/bash" + "L+ /bin/cryptroot-unlock - - - - ${cryptrootUnlockWrapper}/bin/cryptroot-unlock" ]; }; }