Skip to content

Commit

Permalink
feat(desktop|wlroots|secrets): use pass-secret-service
Browse files Browse the repository at this point in the history
  • Loading branch information
montchr committed Feb 8, 2025
1 parent 0d8de17 commit 0d6fe7e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions home/profiles/graphical/__wlroots.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{ pkgs, ... }:
{
imports = [
# A secret service is required. It's either this one (uses
# password-store) or GNOME Keyring, but only one can be enabled at
# a time (they provide mutually-exclusive implementations of the
# XDG Secret Service protocol). It's probably not the best idea
# to make pass-secret-service a requirement, since it requires the
# user to have configured the password-store properly.
../password-store.nix

./common.nix
./cliphist.nix
./darkman.nix
Expand Down
2 changes: 0 additions & 2 deletions home/profiles/graphical/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ in
qt.enable = true;
qt.platformTheme.name = "gtk3";

services.gnome-keyring.enable = true;

xdg = {
userDirs = {
enable = true;
Expand Down
5 changes: 5 additions & 0 deletions home/profiles/password-store.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ lib.mkIf config.programs.gpg.enable {
};
};

services.pass-secret-service = {
enable = true;
storePath = passwordStorePath;
};

programs.browserpass.enable = true;
programs.browserpass.browsers = [ "firefox" ];

Expand Down

0 comments on commit 0d6fe7e

Please sign in to comment.