From 3f298bdb6c4a429834667cbf6f6a61cb81757133 Mon Sep 17 00:00:00 2001 From: LordGrimmauld Date: Mon, 4 Mar 2024 17:28:45 +0100 Subject: [PATCH] integrate pass with firefox --- modules/toolchains.nix | 11 ++++++++++- modules/tui.nix | 3 --- modules/users.nix | 9 ++++++++- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/modules/toolchains.nix b/modules/toolchains.nix index 9dbe6b3..e5aff50 100644 --- a/modules/toolchains.nix +++ b/modules/toolchains.nix @@ -14,7 +14,11 @@ in { jdk17 python3 pkg-config - imgui + + pinentry + pass + tea + (writeShellScriptBin "passw" "pass $@") # nodejs_21 # ugh.... somehow nvim needs node now?!? ]; @@ -90,6 +94,11 @@ in { }; }; + services.pcscd.enable = true; programs.xonsh.enable = true; programs.ssh.startAgent = true; + programs.gnupg.agent = { + pinentryFlavor = "tty"; + enable = true; + }; } diff --git a/modules/tui.nix b/modules/tui.nix index 6ce2b75..4516c36 100644 --- a/modules/tui.nix +++ b/modules/tui.nix @@ -6,8 +6,5 @@ spotify-tui ranger alacritty - pass - tea - (writeShellScriptBin "passw" "pass $@") ]; } diff --git a/modules/users.nix b/modules/users.nix index 97542cb..32d3deb 100644 --- a/modules/users.nix +++ b/modules/users.nix @@ -16,7 +16,7 @@ element-desktop nmap ghidra - firefox +# firefox kcalc rmview krita @@ -42,6 +42,13 @@ ]; }; + environment.systemPackages = with pkgs; [ pinentry-qt ]; + + programs.firefox = { + enable = true; + nativeMessagingHosts.packages = with pkgs; [ passff-host ]; + }; + programs.steam = { enable = true; gamescopeSession.enable = true;