diff options
| author | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-10 19:43:49 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar@gmail.com> | 2026-09-10 19:43:49 +0530 |
| commit | bdee6f183cd38ff7539618336c5448a10f432aae (patch) | |
| tree | d061db5411de504d2d5570a4958a1352516a1b3b /modules/security/gopass/default.nix | |
| parent | 96ec0f89101ea414e764565e022b9bc83a96071c (diff) | |
| download | home-manager-config-bdee6f183cd38ff7539618336c5448a10f432aae.tar.gz home-manager-config-bdee6f183cd38ff7539618336c5448a10f432aae.zip | |
feat(security/gopass): added templates for gopass creation wizard
Diffstat (limited to 'modules/security/gopass/default.nix')
| -rw-r--r-- | modules/security/gopass/default.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/security/gopass/default.nix b/modules/security/gopass/default.nix index e78e595..123b33f 100644 --- a/modules/security/gopass/default.nix +++ b/modules/security/gopass/default.nix @@ -34,6 +34,9 @@ }; }; }; + creation-templates = { + enable = lib.mkEnableOption "Enables gopass entry creation templates. New entry creation templates for gopass new or gopass create commands."; + }; }; config = lib.mkMerge [ @@ -83,6 +86,16 @@ source = ../../../assets/icons/apps/gopass.svg; }; + home.activation.copyCreationTemplatesForGopass = + lib.mkIf config.security.gopass.creation-templates.enable + ( + lib.hm.dag.entryAfter [ "writeBoundary" ] '' + $DRY_RUN_CMD mkdir -p $VERBOSE_ARG "${config.programs.password-store.settings.PASSWORD_STORE_DIR}/.gopass/create" + $DRY_RUN_CMD rm -rf ${config.programs.password-store.settings.PASSWORD_STORE_DIR}/.gopass/create + $DRY_RUN_CMD cp -r $VERBOSE_ARG --no-preserve=mode ${./creation-templates} "${config.programs.password-store.settings.PASSWORD_STORE_DIR}/.gopass/create" + '' + ); + xdg.desktopEntries."gopass" = { name = "gopass"; exec = "${lib.getExe config.terminal.kitty.package} --class gopass -e ${lib.getExe config.security.gopass.package}"; |
