chore: put gnupg and pass in a module
This commit is contained in:
parent
8b453699db
commit
836514c1d4
6 changed files with 43 additions and 30 deletions
|
@ -1,10 +1,6 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./pass.nix
|
|
||||||
./gnupg.nix
|
|
||||||
./bat.nix
|
|
||||||
./eza.nix
|
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
home.packages = with pkgs; [
|
|
||||||
pinentry-gnome
|
|
||||||
pkgs.gcr
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.gpg = {
|
|
||||||
enable = true;
|
|
||||||
scdaemonSettings = {
|
|
||||||
disable-ccid = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.gpg-agent = {
|
|
||||||
enable = true;
|
|
||||||
enableScDaemon = true;
|
|
||||||
enableZshIntegration = true;
|
|
||||||
pinentryFlavor = "gnome3";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,6 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
programs.password-store = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
config.modules = {
|
config.modules = {
|
||||||
application = {
|
application = {
|
||||||
|
gnupg.enable = true;
|
||||||
zathura.enable = true;
|
zathura.enable = true;
|
||||||
foot.enable = true;
|
foot.enable = true;
|
||||||
};
|
};
|
||||||
|
|
41
modules/home-manager/application/gnupg/default.nix
Normal file
41
modules/home-manager/application/gnupg/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
with lib;
|
||||||
|
let
|
||||||
|
cfg = config.modules.application.gnupg;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.modules.application.gnupg = {
|
||||||
|
enable = mkEnableOption "enable GnuPG and related utils";
|
||||||
|
|
||||||
|
pass = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = "install password-store";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
pinentry-gnome
|
||||||
|
pkgs.gcr
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.gpg = {
|
||||||
|
enable = true;
|
||||||
|
scdaemonSettings = {
|
||||||
|
disable-ccid = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
services.gpg-agent = {
|
||||||
|
enable = true;
|
||||||
|
enableScDaemon = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
pinentryFlavor = "gnome3";
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.password-store = {
|
||||||
|
enable = cfg.pass;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -2,6 +2,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./application/foot
|
./application/foot
|
||||||
|
./application/gnupg
|
||||||
./application/imv
|
./application/imv
|
||||||
./application/zathura
|
./application/zathura
|
||||||
./cli/ghq/default.nix
|
./cli/ghq/default.nix
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue