blob: b4ef113852be2334b4ad0bb4ac7477af4b6926d4 [file] [log] [blame]
Samuel Shuert659b5642024-02-23 20:47:43 +00001nixpkgs:
2let
Samuel Shuert2e42e672024-02-21 21:49:28 +00003 keys = {
4 users = {
5 coded = "BC82DF237610AE9113EB075900E944BFBE99ADB5";
6 minion = "76E0B09A741C4089522111E5F27E3E5922772E7A";
7 };
8 hosts = {
Samuel Shuert659b5642024-02-23 20:47:43 +00009 shorthair = "B5237D6B63AB2E13FDA07170E5AED9775DD21543";
10 greylag = "047bf8897df877fe86133e98522c6d280d545c00";
Samuel Shuert2e42e672024-02-21 21:49:28 +000011 };
Samuel Shuert659b5642024-02-23 20:47:43 +000012 };
13in
14{
Samuel Shuert2e42e672024-02-21 21:49:28 +000015 creation_rules = [
16 {
Samuel Shuert659b5642024-02-23 20:47:43 +000017 path_regex = ".*\\.sops\\.chimera\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000018 pgp = nixpkgs.lib.concatStringsSep "," [
19 keys.users.coded
20 keys.users.minion
21 keys.hosts.shorthair
22 keys.hosts.greylag
23 ];
24 }
25 {
Samuel Shuert659b5642024-02-23 20:47:43 +000026 path_regex = ".*\\.sops\\.coded\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000027 pgp = nixpkgs.lib.concatStringsSep "," [
28 keys.users.coded
29 keys.hosts.shorthair
30 ];
31 }
32 {
Samuel Shuert659b5642024-02-23 20:47:43 +000033 path_regex = ".*\\.sops\\.minion\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000034 pgp = nixpkgs.lib.concatStringsSep "," [
35 keys.users.minion
36 keys.hosts.greylag
37 ];
38 }
39 ];
Samuel Shuert659b5642024-02-23 20:47:43 +000040}