diff options
author | Freya Murphy <freya@freyacat.org> | 2025-06-24 11:51:39 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-06-24 11:51:39 -0400 |
commit | d639c293ad1ba71008aeb5c54c40f59a076018dc (patch) | |
tree | e832a3f0ee5044c8b35e5642f07a62137bbffc2c /home/gpg.nix | |
parent | update ssh config (diff) | |
download | dotfiles-nix-d639c293ad1ba71008aeb5c54c40f59a076018dc.tar.gz dotfiles-nix-d639c293ad1ba71008aeb5c54c40f59a076018dc.tar.bz2 dotfiles-nix-d639c293ad1ba71008aeb5c54c40f59a076018dc.zip |
redo lib, make global vars for key lists
Diffstat (limited to 'home/gpg.nix')
-rw-r--r-- | home/gpg.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/home/gpg.nix b/home/gpg.nix index a2deed2..e40ad92 100644 --- a/home/gpg.nix +++ b/home/gpg.nix @@ -2,12 +2,9 @@ config, lib, pkgs, + self, ... -}: let - keysDir = ../files/keys; - keys = lib.attrsets.mapAttrsToList (name: type: "${keysDir}/${name}") (builtins.readDir keysDir); - gpgKeys = builtins.filter (path: lib.strings.hasSuffix "asc" path) keys; -in { +}: { home-manager.users.${config.user} = { # install keys into gpg keyring programs.gpg = { @@ -17,7 +14,7 @@ in { source = path; trust = 5; }) - gpgKeys; + self.lib.gpgKeys; }; # global gpg agent |