add nixnas config
This commit is contained in:
parent
e68c98b63c
commit
9a1e9e0c31
7 changed files with 411 additions and 3 deletions
16
gnupg.nix
16
gnupg.nix
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue