Modular things!
This commit is contained in:
@@ -2,6 +2,4 @@
|
||||
# These should be stuff you would like to share with others, not your personal configurations.
|
||||
{
|
||||
# List your module files here
|
||||
# gpg-agent = import ./gpg-agent.nix;
|
||||
# config.azos.gpg-agent.enable = true;
|
||||
}
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
grab
|
||||
pinentry-program /usr/bin/pinentry
|
||||
default-cache-ttl 86400
|
||||
max-cache-ttl 86400
|
||||
enable-ssh-support
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let cfg = config.azos.gpg-agent;
|
||||
in {
|
||||
cfg.enable = mkEnableOption "Enables AZOS GPG agent";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.gnupg.agent.enable = true;
|
||||
home.file.".gnupg/gpg-agent.conf".source = ./gpg-agent.conf;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user