Move password-store configuration
All checks were successful
/ check (push) Successful in 1m34s

This commit is contained in:
Oliver Davies 2025-07-25 00:25:08 +01:00
parent a3e4cd0e13
commit 6a12ea4b0e
8 changed files with 39 additions and 47 deletions

View file

@ -0,0 +1,11 @@
{
flake.modules.homeManager.base =
{ pkgs, ... }:
{
programs.password-store.extensions = with pkgs.passExtensions; [
pass-audit
pass-otp
pass-update
];
};
}

View file

@ -0,0 +1,3 @@
{
flake.modules.homeManager.base.programs.password-store.enable = true;
}

View file

@ -0,0 +1,17 @@
{ lib, ... }:
{
flake.modules.homeManager.base =
{ config, pkgs, ... }:
{
options.programs.password-store.extensions = lib.mkOption {
default = [ ];
type = lib.types.listOf lib.types.package;
description = "pass extensions to install.";
};
config.programs.password-store.package = pkgs.pass.withExtensions (
e: with e; config.programs.password-store.extensions
);
};
}

View file

@ -0,0 +1,7 @@
{
flake.modules.homeManager.base =
{ config, ... }:
{
programs.password-store.settings.PASSWORD_STORE_DIR = "${config.xdg.dataHome}/pass";
};
}