This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / tools / pass / flake-module.nix
852 B 32 lines
1{ self, ... }: 2{ 3 perSystem = 4 { pkgs, system, ... }: 5 { 6 packages.pass = pkgs.writeShellApplication { 7 name = "pass"; 8 runtimeInputs = [ 9 pkgs.passage 10 pkgs.age-plugin-se 11 self.packages.${system}.pass-otp 12 ]; 13 text = '' 14 # Ensure age identity exists 15 if [ ! -f ~/.passage/identities ]; then 16 echo "Error: Age identity not found at ~/.passage/identities" 17 echo "Please copy your age private key to ~/.passage/identities" 18 exit 1 19 fi 20 21 # Handle OTP commands by delegating to pass-otp 22 if [[ "''${1:-}" == "otp" ]]; then 23 shift 24 pass-otp "$@" 25 else 26 # Pass all other commands directly to passage 27 passage "$@" 28 fi 29 ''; 30 }; 31 }; 32}