fix: use pass-otp via package.withExtensions instead of settings
This commit is contained in:
parent
2d98a9e83c
commit
b71b587c1a
1 changed files with 5 additions and 6 deletions
|
|
@ -1,16 +1,15 @@
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
# Password store (gpg-backed)
|
# Password store (gpg-backed) with pass-otp extension
|
||||||
programs.password-store = {
|
programs.password-store = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = pkgs.pass.withExtensions (exts: [ exts.pass-otp ]);
|
||||||
settings = {
|
settings = {
|
||||||
# Default password store path
|
|
||||||
PASSWORD_STORE_DIR = "$HOME/.password-store";
|
PASSWORD_STORE_DIR = "$HOME/.password-store";
|
||||||
PASSWORD_STORE_GIT = "git+https://git.iscg.dev/mikl/password-store.git";
|
PASSWORD_STORE_GIT = "git+https://git.iscg.dev/mikl/password-store.git";
|
||||||
PASSWORD_STORE_X_SELECTION_TIMEOUT = 5;
|
PASSWORD_STORE_X_SELECTION_TIMEOUT = "5";
|
||||||
PASSWORD_STORE_CLIP_TIME = 45;
|
PASSWORD_STORE_CLIP_TIME = "45";
|
||||||
# extensions
|
PASSWORD_STORE_GENERATED_LENGTH = "25";
|
||||||
extensions = [ "otp" ];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue