Added pass

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

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
modules/system/pass.nix Normal file
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";
};
};
}