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

@@ -66,6 +66,7 @@ in
nvidiaBusId = "PCI:1:0:0"; nvidiaBusId = "PCI:1:0:0";
}; };
system.gpg.enable = true; system.gpg.enable = true;
system.pass.enable = true;
# - Desktop ---------------------------------- # - Desktop ----------------------------------
desktop = { desktop = {

View File

@@ -8,9 +8,13 @@ in
enable = lib.mkEnableOption "gpg"; enable = lib.mkEnableOption "gpg";
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.gnupg.agent.enable = true; programs.gnupg.agent = {
# environment.systemPackages = with pkgs; [ enable = true;
# gnupg 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";
};
};
}