blob: b463d714c73bec74b9c31634381ae94ec9f63681 [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 Shuertd58fbaf2024-06-20 21:08:48 -040011 shorthair = "B5237D6B63AB2E13FDA07170E5AED9775DD21543";
12 greylag = "047bf8897df877fe86133e98522c6d280d545c00";
PineaFan3ed74f02024-04-20 20:41:36 +010013 saurosuchus = "12f47c96d9066c52897cdf9ddf581f86799fb07c";
Samuel Shuertd58fbaf2024-06-20 21:08:48 -040014 ocicat = "58BF6324CE6D45E156490D0F4579865C9D4CE67E";
Samuel Shuert2e42e672024-02-21 21:49:28 +000015 };
Samuel Shuert659b5642024-02-23 20:47:43 +000016 };
17in
18{
Samuel Shuert2e42e672024-02-21 21:49:28 +000019 creation_rules = [
20 {
Samuel Shuert659b5642024-02-23 20:47:43 +000021 path_regex = ".*\\.sops\\.chimera\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000022 pgp = nixpkgs.lib.concatStringsSep "," [
23 keys.users.coded
24 keys.users.minion
PineaFan3ed74f02024-04-20 20:41:36 +010025 keys.users.pinea
26
Samuel Shuert2e42e672024-02-21 21:49:28 +000027 keys.hosts.shorthair
28 keys.hosts.greylag
PineaFan3ed74f02024-04-20 20:41:36 +010029 keys.hosts.saurosuchus
Samuel Shuertd58fbaf2024-06-20 21:08:48 -040030 keys.hosts.ocicat
Samuel Shuert2e42e672024-02-21 21:49:28 +000031 ];
32 }
33 {
Samuel Shuert659b5642024-02-23 20:47:43 +000034 path_regex = ".*\\.sops\\.coded\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000035 pgp = nixpkgs.lib.concatStringsSep "," [
36 keys.users.coded
37 keys.hosts.shorthair
Samuel Shuertd58fbaf2024-06-20 21:08:48 -040038 keys.hosts.ocicat
Samuel Shuert2e42e672024-02-21 21:49:28 +000039 ];
40 }
41 {
Samuel Shuert659b5642024-02-23 20:47:43 +000042 path_regex = ".*\\.sops\\.minion\\.(yaml|json|env|ini|[^.]*\\.bin)$";
Samuel Shuert2e42e672024-02-21 21:49:28 +000043 pgp = nixpkgs.lib.concatStringsSep "," [
44 keys.users.minion
45 keys.hosts.greylag
46 ];
47 }
PineaFan3ed74f02024-04-20 20:41:36 +010048 {
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 Shuert2e42e672024-02-21 21:49:28 +000055 ];
Samuel Shuert659b5642024-02-23 20:47:43 +000056}