feat(git): use soft secrets to handle email and signing key

This commit is contained in:
Yorick Barbanneau 2025-08-11 22:22:31 +02:00
parent 55517dba81
commit 8bf663b78a
3 changed files with 10 additions and 11 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, ... }:
{ lib, config, pkgs, inputs, ... }:
with lib;
let
cfg = config.modules.cli.git;
@ -15,19 +15,19 @@ in
userEmail = mkOption {
type = types.str;
default = "ephase@xieme-art.org";
default = inputs.nix-private.git.personal.userEmail;
description = "git email";
};
signingKey = mkOption {
type = types.nullOr types.str;
default = null;
default = inputs.nix-private.git.personal.signingKey;
description = "signing key fingerprint";
};
signByDefault = mkOption {
type = types.bool;
default = false;
default = true;
description = "activate signing by default";
};
};