Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 1 | nixpkgs: |
| 2 | let |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 3 | keys = { |
| 4 | users = { |
| 5 | coded = "BC82DF237610AE9113EB075900E944BFBE99ADB5"; |
| 6 | minion = "76E0B09A741C4089522111E5F27E3E5922772E7A"; |
PineaFan | 3ed74f0 | 2024-04-20 20:41:36 +0100 | [diff] [blame] | 7 | pinea = "8F50789F12AC6E6206EA870CE5E1C2D43B0E4AB3"; |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 8 | }; |
| 9 | hosts = { |
PineaFan | 3ed74f0 | 2024-04-20 20:41:36 +0100 | [diff] [blame] | 10 | # nix run github:Mic92/ssh-to-pgp -- -i /etc/ssh/ssh_host_rsa_key |
Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 11 | shorthair = "B5237D6B63AB2E13FDA07170E5AED9775DD21543"; |
| 12 | greylag = "047bf8897df877fe86133e98522c6d280d545c00"; |
PineaFan | 3ed74f0 | 2024-04-20 20:41:36 +0100 | [diff] [blame] | 13 | saurosuchus = "12f47c96d9066c52897cdf9ddf581f86799fb07c"; |
Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 14 | ocicat = "58BF6324CE6D45E156490D0F4579865C9D4CE67E"; |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 15 | }; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 16 | }; |
| 17 | in |
| 18 | { |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 19 | creation_rules = [ |
| 20 | { |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 21 | path_regex = ".*\\.sops\\.chimera\\.(yaml|json|env|ini|[^.]*\\.bin)$"; |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 22 | pgp = nixpkgs.lib.concatStringsSep "," [ |
| 23 | keys.users.coded |
| 24 | keys.users.minion |
PineaFan | 3ed74f0 | 2024-04-20 20:41:36 +0100 | [diff] [blame] | 25 | keys.users.pinea |
| 26 | |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 27 | keys.hosts.shorthair |
| 28 | keys.hosts.greylag |
PineaFan | 3ed74f0 | 2024-04-20 20:41:36 +0100 | [diff] [blame] | 29 | keys.hosts.saurosuchus |
Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 30 | keys.hosts.ocicat |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 31 | ]; |
| 32 | } |
| 33 | { |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 34 | path_regex = ".*\\.sops\\.coded\\.(yaml|json|env|ini|[^.]*\\.bin)$"; |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 35 | pgp = nixpkgs.lib.concatStringsSep "," [ |
| 36 | keys.users.coded |
| 37 | keys.hosts.shorthair |
Samuel Shuert | d58fbaf | 2024-06-20 21:08:48 -0400 | [diff] [blame] | 38 | keys.hosts.ocicat |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 39 | ]; |
| 40 | } |
| 41 | { |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 42 | path_regex = ".*\\.sops\\.minion\\.(yaml|json|env|ini|[^.]*\\.bin)$"; |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 43 | pgp = nixpkgs.lib.concatStringsSep "," [ |
| 44 | keys.users.minion |
| 45 | keys.hosts.greylag |
| 46 | ]; |
| 47 | } |
PineaFan | 3ed74f0 | 2024-04-20 20:41:36 +0100 | [diff] [blame] | 48 | { |
| 49 | path_regex = ".*\\.sops\\.pinea\\.(yaml|json|env|ini|[^.]*\\.bin)$"; |
| 50 | pgp = nixpkgs.lib.concatStringsSep "," [ |
| 51 | keys.users.pinea |
| 52 | keys.hosts.saurosuchus |
| 53 | ]; |
| 54 | } |
Samuel Shuert | 2e42e67 | 2024-02-21 21:49:28 +0000 | [diff] [blame] | 55 | ]; |
Samuel Shuert | 659b564 | 2024-02-23 20:47:43 +0000 | [diff] [blame] | 56 | } |