check if reference exists in key group before adding, skip if it does

This commit is contained in:
2025-05-05 09:38:43 -05:00
parent cf085c4eec
commit b3aedc5ead
2 changed files with 8 additions and 6 deletions
-2
View File
@@ -1,10 +1,8 @@
keys:
hosts:
- &laptop age1ldgnl53dmvl4fjz6hgdj0cvensagddn3ltpmxfm72m8q273w75fsk42p8v
- &nixos-homelab-00 age1kc49egwnslqjjy7yknlv9spxa2xvrq4l6alxumu54ez8vwvf3e2q5ff63k
creation_rules:
- path_regex: secrets/[^/]+\.(yaml|json|env|ini)$
key_groups:
- age:
- *laptop
- *nixos-homelab-00