add nixnas config

This commit is contained in:
Clayton Hickey 2025-11-18 17:14:20 -05:00
parent e68c98b63c
commit 9a1e9e0c31
7 changed files with 411 additions and 3 deletions

View file

@ -1,4 +1,14 @@
{pkgs, ...}: {
programs.gnupg.agent.enable = true;
programs.gnupg.agent.pinentryPackage = pkgs.pinentry-curses;
{pkgs, config, lib, ...}:
let
cfg = config.cos.gnupg;
in
{
options.cos.gnupg = {
enable = lib.mkEnableOption "Bikeability server";
};
config = lib.mkIf cfg.enable {
programs.gnupg.agent.enable = true;
programs.gnupg.agent.pinentryPackage = pkgs.pinentry-curses;
};
}