Something basic works

This commit is contained in:
2024-08-13 13:24:32 +03:00
parent d9643caedb
commit 843df231a6
9 changed files with 222 additions and 12 deletions
+2 -1
View File
@@ -2,5 +2,6 @@
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
# gpg-agent = import ./gpg-agent.nix;
# config.azos.gpg-agent.enable = true;
}
+6
View File
@@ -0,0 +1,6 @@
grab
pinentry-program /usr/bin/pinentry
default-cache-ttl 86400
max-cache-ttl 86400
enable-ssh-support
+14
View File
@@ -0,0 +1,14 @@
#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;
};
}