14 lines
337 B
Nix
14 lines
337 B
Nix
#https://xeiaso.net/talks/asg-2023-nixos/ example
|
|
{ lib, config, pkgs, ... }:
|
|
let
|
|
cfg = config.azos.gpgagent;
|
|
in
|
|
{
|
|
options.azos.gpgagent.enable = lib.mkEnableOption "Enables AZOS GPG agent";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = [ pkgs.gnupg ];
|
|
home.file.".gnupg/gpg-agent.conf".source = ./gpg-agent.conf;
|
|
};
|
|
}
|