Modular things!

This commit is contained in:
2024-08-13 14:34:03 +03:00
parent 843df231a6
commit e25d8a17cf
7 changed files with 42 additions and 17 deletions
-2
View File
@@ -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;
}
-6
View File
@@ -1,6 +0,0 @@
grab
pinentry-program /usr/bin/pinentry
default-cache-ttl 86400
max-cache-ttl 86400
enable-ssh-support
-14
View File
@@ -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;
};
}