15 lines
326 B
Nix
15 lines
326 B
Nix
#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;
|
|
};
|
|
}
|