diff --git a/hosts/homelab/configuration.nix b/hosts/homelab/configuration.nix index 81a217e..8d55585 100755 --- a/hosts/homelab/configuration.nix +++ b/hosts/homelab/configuration.nix @@ -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"; diff --git a/modules/nixos/programs/nih/default.nix b/modules/nixos/programs/nih/default.nix index 6ec61eb..1c1246d 100644 --- a/modules/nixos/programs/nih/default.nix +++ b/modules/nixos/programs/nih/default.nix @@ -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 = [