1
0
mirror of https://github.com/tboerger/nixos-config synced 2025-02-22 23:31:08 +01:00
github.com-tboerger-nixos-c.../profiles/thomas/programs/gopass.nix
2024-11-24 16:13:14 +01:00

61 lines
1.2 KiB
Nix

{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.profile.programs.gopass;
in
{
options = {
profile = {
programs = {
gopass = {
enable = mkEnableOption "Gopass" // {
default = true;
};
};
};
};
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [
gopass
];
};
xdg = {
configFile = {
"gopass/config" = {
text = ''
[core]
notifications = true
exportkeys = true
autoimport = true
cliptimeout = 45
autoclip = false
showsafecontent = false
parsing = true
nopager = false
[age]
usekeychain = false
[mounts]
path = ${config.xdg.dataHome}/gopass/stores/root
[mounts "cloudpunks"]
path = ${config.xdg.dataHome}/gopass/stores/cloudpunks
[mounts "gopad"]
path = ${config.xdg.dataHome}/gopass/stores/gopad
[mounts "kleister"]
path = ${config.xdg.dataHome}/gopass/stores/kleister
'';
};
};
};
};
}