blob: bbc8d34fc4d82aade6cfeed32b46e6aee538cc36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
{pkgs, config, lib, ...}: let inherit (lib.options) mkEnableOption mkPackageOption;
inherit (lib.modules) mkIf;
cfg = config.programs.git-credential-lastpass;
in {
options.programs.git-credential-lastpass = {
enable = mkEnableOption "Lastpass credential helper";
package = mkPackageOption pkgs "lastpass-cli" {};
};
config = mkIf cfg.enable {
programs.git.extraConfig.credential.helper = [ "${cfg.package}/bin/git-credential-lastpass" ];
};
}
|