Added pass

This commit is contained in:
marc committed 2023-01-14 14:28:54 +01:00
1 parent 96028c6cad
commit e436a4be3b
3 files changed
+31 -4

No files matched your search

+8 -4
View File
@@ -8,9 +8,13 @@ in
enable = lib.mkEnableOption "gpg";
};
config = lib.mkIf cfg.enable {
programs.gnupg.agent.enable = true;
# environment.systemPackages = with pkgs; [
# gnupg
# ];
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
environment.systemPackages = with pkgs; [
pinentry
];
};
}
+22
View File
@@ -0,0 +1,22 @@
{ config, lib, pkgs, self, ... }:
let
cfg = config.samfelag.modules.system.pass;
desktopCfg = config.samfelag.modules.desktop;
in
{
options.samfelag.modules.system.pass = {
enable = lib.mkEnableOption "pass";
};
config = lib.mkIf cfg.enable {
samfelag.modules.system.gpg.enable = true;
environment.systemPackages = with pkgs; [
pass
rofi-pass
];
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf desktopCfg.enable {
"${desktopCfg.i3.mod}+p" = "exec rofi-pass";
};
};
}