blob: cac2feefb1e657fc3b76f760ce012778095eace7 [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";
PineaFan3ed74f02024-04-20 20:41:36 +01007 pinea = "8F50789F12AC6E6206EA870CE5E1C2D43B0E4AB3";
Samuel Shuert2e42e672024-02-21 21:49:28 +00008 };
9 hosts = {
PineaFan3ed74f02024-04-20 20:41:36 +010010 # nix run github:Mic92/ssh-to-pgp -- -i /etc/ssh/ssh_host_rsa_key
Samuel Shuert659b5642024-02-23 20:47:43 +000011 shorthair = "B5237D6B63AB2E13FDA07170E5AED9775DD21543";
12 greylag = "047bf8897df877fe86133e98522c6d280d545c00";
PineaFan3ed74f02024-04-20 20:41:36 +010013 saurosuchus = "12f47c96d9066c52897cdf9ddf581f86799fb07c";
Samuel Shuert2e42e672024-02-21 21:49:28 +000014 };
Samuel Shuert659b5642024-02-23 20:47:43 +000015 };
16in
17{
Samuel Shuert2e42e672024-02-21 21:49:28 +000018 creation_rules = [
19 {
Samuel Shuert659b5642024-02-23 20:47:43 +000020 path_regex = ".*\\.sops\\.chimera\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000021 pgp = nixpkgs.lib.concatStringsSep "," [
22 keys.users.coded
23 keys.users.minion
PineaFan3ed74f02024-04-20 20:41:36 +010024 keys.users.pinea
25
Samuel Shuert2e42e672024-02-21 21:49:28 +000026 keys.hosts.shorthair
27 keys.hosts.greylag
PineaFan3ed74f02024-04-20 20:41:36 +010028 keys.hosts.saurosuchus
Samuel Shuert2e42e672024-02-21 21:49:28 +000029 ];
30 }
31 {
Samuel Shuert659b5642024-02-23 20:47:43 +000032 path_regex = ".*\\.sops\\.coded\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000033 pgp = nixpkgs.lib.concatStringsSep "," [
34 keys.users.coded
35 keys.hosts.shorthair
36 ];
37 }
38 {
Samuel Shuert659b5642024-02-23 20:47:43 +000039 path_regex = ".*\\.sops\\.minion\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000040 pgp = nixpkgs.lib.concatStringsSep "," [
41 keys.users.minion
42 keys.hosts.greylag
43 ];
44 }
PineaFan3ed74f02024-04-20 20:41:36 +010045 {
46 path_regex = ".*\\.sops\\.pinea\\.(yaml|json|env|ini|[^.]*\\.bin)$";
47 pgp = nixpkgs.lib.concatStringsSep "," [
48 keys.users.pinea
49 keys.hosts.saurosuchus
50 ];
51 }
Samuel Shuert2e42e672024-02-21 21:49:28 +000052 ];
Samuel Shuert659b5642024-02-23 20:47:43 +000053}