feat: gpg signing in homelab
This commit is contained in:
@@ -18,6 +18,14 @@
|
||||
|
||||
profiles.locale.enable = true;
|
||||
|
||||
programs.gnupg.agent = {
|
||||
enable = true;
|
||||
pinentryPackage = pkgs.pinentry-tty;
|
||||
settings = {
|
||||
default-cache-ttl = 3600 * 24;
|
||||
};
|
||||
};
|
||||
|
||||
home-manager-helper.enable = true;
|
||||
home-manager-helper.users."guz" = {
|
||||
name = "guz";
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{ config
|
||||
, lib
|
||||
, pkgs
|
||||
, ...
|
||||
}:
|
||||
let
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
cfg = config.programs.nih;
|
||||
cli = pkgs.writeShellScriptBin "nih" ''
|
||||
# Since alias= doesn't work in bash scripts
|
||||
@@ -26,23 +26,22 @@ let
|
||||
|
||||
${builtins.readFile ./cli.sh}
|
||||
'';
|
||||
in
|
||||
{
|
||||
imports = [ ];
|
||||
in {
|
||||
imports = [];
|
||||
options.programs.nih = with lib;
|
||||
with lib.types; {
|
||||
enable = mkEnableOption "";
|
||||
host = mkOption {
|
||||
type = str;
|
||||
};
|
||||
flakeDir = mkOption {
|
||||
type = str;
|
||||
};
|
||||
cli = mkOption {
|
||||
type = bool;
|
||||
default = cfg.enable;
|
||||
};
|
||||
with lib.types; {
|
||||
enable = mkEnableOption "";
|
||||
host = mkOption {
|
||||
type = str;
|
||||
};
|
||||
flakeDir = mkOption {
|
||||
type = str;
|
||||
};
|
||||
cli = mkOption {
|
||||
type = bool;
|
||||
default = cfg.enable;
|
||||
};
|
||||
};
|
||||
config = with lib;
|
||||
mkIf cfg.enable {
|
||||
environment.systemPackages = [
|
||||
|
||||
Reference in New Issue
Block a user