From f86ee9f9d28ccca817438dbc24eb6e94d67594d9 Mon Sep 17 00:00:00 2001 From: Brian Zalewski Date: Thu, 26 Jan 2023 03:32:23 +0000 Subject: [PATCH] New encryption method compatible with users without creds --- .../run_onchange_after_99-restart-gnome.tmpl | 5 +++-- .../secrets/google-assistant-client-secret | 18 ++++++++++++++++ .../secrets/google-assistant-tokens | 16 ++++++++++++++ .../secrets/gphotos-sync} | 0 .../secrets/ssh-audi} | 0 .../secrets/ssh-authorized-keys.yubikey} | 0 .../secrets/ssh-blue} | 0 .../secrets/ssh-fiat} | 0 .../secrets/ssh-honda} | 0 .../secrets/ssh-lab} | 0 .../secrets/ssh-lab.pub} | 0 .../secrets/ssh-mini} | 0 .../secrets/ssh-red} | 0 .../secrets/ssh-yellow} | 0 .../symlink_client_secret.json.tmpl | 3 +++ .../encrypted_client-secret.json | 21 +++---------------- .../Google Assistant/encrypted_tokens.json | 19 +++-------------- .../gphotos-sync/encrypted_client_secret.json | 18 +++------------- home/dot_ssh/ssh-audi | 3 +++ home/dot_ssh/ssh-authorized_keys.yubikey | 3 +++ home/dot_ssh/ssh-blue | 3 +++ home/dot_ssh/ssh-fiat | 3 +++ home/dot_ssh/ssh-honda | 3 +++ home/dot_ssh/ssh-lab | 3 +++ home/dot_ssh/ssh-lab.pub | 3 +++ home/dot_ssh/ssh-mini.tmpl | 3 +++ home/dot_ssh/ssh-red.tmpl | 3 +++ home/dot_ssh/ssh-yellow.tmpl | 3 +++ 28 files changed, 79 insertions(+), 51 deletions(-) create mode 100644 home/.chezmoitemplates/secrets/google-assistant-client-secret create mode 100644 home/.chezmoitemplates/secrets/google-assistant-tokens rename home/{Library/Application Support/gphotos-sync/encrypted_client_secret.json => .chezmoitemplates/secrets/gphotos-sync} (100%) rename home/{dot_ssh/encrypted_audi => .chezmoitemplates/secrets/ssh-audi} (100%) rename home/{dot_ssh/encrypted_authorized_keys.yubikey => .chezmoitemplates/secrets/ssh-authorized-keys.yubikey} (100%) rename home/{dot_ssh/encrypted_blue => .chezmoitemplates/secrets/ssh-blue} (100%) rename home/{dot_ssh/encrypted_fiat => .chezmoitemplates/secrets/ssh-fiat} (100%) rename home/{dot_ssh/encrypted_honda => .chezmoitemplates/secrets/ssh-honda} (100%) rename home/{dot_ssh/encrypted_lab => .chezmoitemplates/secrets/ssh-lab} (100%) rename home/{dot_ssh/encrypted_lab.pub => .chezmoitemplates/secrets/ssh-lab.pub} (100%) rename home/{dot_ssh/encrypted_mini => .chezmoitemplates/secrets/ssh-mini} (100%) rename home/{dot_ssh/encrypted_red => .chezmoitemplates/secrets/ssh-red} (100%) rename home/{dot_ssh/encrypted_yellow => .chezmoitemplates/secrets/ssh-yellow} (100%) create mode 100644 home/Library/Application Support/gphotos-sync/symlink_client_secret.json.tmpl create mode 100644 home/dot_ssh/ssh-audi create mode 100644 home/dot_ssh/ssh-authorized_keys.yubikey create mode 100644 home/dot_ssh/ssh-blue create mode 100644 home/dot_ssh/ssh-fiat create mode 100644 home/dot_ssh/ssh-honda create mode 100644 home/dot_ssh/ssh-lab create mode 100644 home/dot_ssh/ssh-lab.pub create mode 100644 home/dot_ssh/ssh-mini.tmpl create mode 100644 home/dot_ssh/ssh-red.tmpl create mode 100644 home/dot_ssh/ssh-yellow.tmpl diff --git a/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl index 1027daba..ee0fece8 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_99-restart-gnome.tmpl @@ -3,8 +3,9 @@ ### Restart GNOME if command -v gnome-shell > /dev/null; then - logg info 'Reloading `gnome-shell`' - killall -3 gnome-shell + logg info 'Manually reload `gnome-shell`' + # logg info 'Reloading `gnome-shell`' + # killall -3 gnome-shell fi {{ end -}} diff --git a/home/.chezmoitemplates/secrets/google-assistant-client-secret b/home/.chezmoitemplates/secrets/google-assistant-client-secret new file mode 100644 index 00000000..13bd646a --- /dev/null +++ b/home/.chezmoitemplates/secrets/google-assistant-client-secret @@ -0,0 +1,18 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBiWGdFUGtPeUZWejc2MlQr +TnYwd25UaUx2UWJSMnJKWXJDaVpROUhKY0hnCkJ5UDhocGRoZTNWcDB0WFVmQkZt +Z1d6NXVGV0plU0IyUS9iaVM4WXNQaTQKLS0tIGpKKzR3dnJ6bFhiQzFiL0UyZUxN +SDhhT0tFVGNRdGNCZFR6eDBCdStHZEEKAhecUqQjK8n5Ws1cFMkCn2Bf4ouCzQ3d +gxWv1bqdvNKU2kj6IYpiHBSfYCcOCbOhpr17+fckmlEoCJS/YwQ+n/U+G8HiMPRL +sV3/RN2zGR4ZmNYVYlKd1rUEwr6KbnWE1cqtUbMWG3Qom80xbz3l7tdtsNDX7Els +xUfQuWbUc7tTGSNjxOP0qPzdbLtF69cGn3mE4+hLeSAi4mMt2zmuoqKT+APBHpF1 +QGenSAqfTpuHdRfLBQ5q59I42pq/sc2n9so+/EZkGrkldY/x+JkOpQRawtvLG4Gk +8q0F2l3IuSHAz92WLbQQ7X5g57MouNNV4GrAZamifwR7Tvi5WEhuidAQyC9prwKx +52hX/V7AOQy2J56L1ZVNfqi4Bnn7sOoqnvZkM0BKndg3FjRla+svnM4C8qCQu+oF +EGs65u2oJboeanPZrq4ZgZyp+FDKCzkSYYVVyvPqZDyXHkpUamXkOM/aBB70D+jF +03mZG9pbbHzfTiK6to8IsgdDKbmqXuO3NTIXbBlDBpZirlyScA2NSOf/VHSUEGqw +5WEv9GOVU8AWgcgRsmt2+KP72cMrk0qU/ucNEKqbiI8wI9Qoh3/Ysm+zpG/9Ha1i +/AvQYrIPgie1JilwT2AqhWPsv4pUPWvu+z/hWcV2cJw9wMTiXaBCIVLPvih/ISC+ +A5/+GHbSILkDvTnCBYYZmtvdHF3gfVD+D01qaiPj/NWVCevhNuKZDZ7fFhnx78+6 +RWia2WYGJGNMhTYizH8= +-----END AGE ENCRYPTED FILE----- diff --git a/home/.chezmoitemplates/secrets/google-assistant-tokens b/home/.chezmoitemplates/secrets/google-assistant-tokens new file mode 100644 index 00000000..fd292f4a --- /dev/null +++ b/home/.chezmoitemplates/secrets/google-assistant-tokens @@ -0,0 +1,16 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB3SWtYcmJDenBGUnM0ZFo3 +UlUyMEYwS1o2SUE4YkFNcjNGWUJLSjVTUmdRCnA4c2RtcE95M2h4S3ZGZUtlYTMv +YWQzTnBjRkZJM3ZtSmNkNlVHdGt0NkkKLS0tIFl4eVZyZ015Y1hIelFwRGtFbFha +eW9zdjFpTXIvM3JWeU5DQm84VUlLcUEKmgbFm85G0kJ44A92Cl0GLwi8vp4j3hj4 +NDJfn/kNDzdRcc1UUuISS8iayI4XAHj2jYAdgKe7p5nnTQX8HfCOEUVcOjPy7k9Q +rMtk5gfmD+SymM+ciGyWayv3x/I+8tbsfDi8/ME6meSgX+tniDQ89t5Yu4ol68FG +MIV/w9YOAWwvDcbV4nvnoNRw8jdtcvAKvP9gmVZGOuYKCbmk4lCRmTsF/SG+U6lV +8PC7u4Bjq0+7jRak2S3khpXgSl/H7EeM6rfIIs7HvOeja5dYLAaYLpFrTrpZPkTX +QEAoMFHX4wLQ8LGXoOCqzAlILR1uw61UGihVijoDQQQteJSbWomzMwW1IjtRwnDx +NTNgPI9jPEetje5IUhzjireWv8RpQbHf/tk7N1uZOM/jbNvUA7g81lRlTImPerPr +epYNDl/RwtfI8dW7Skm50+/BfbjOJwl1eqte6cz8JPfitxt0otgaemJ1bJaPTnss +A0m5o2cGCALhTiHRgHN2YGXi+HlV8+QU8YiHLSvSGHaZ33jlJvi8ym7j/+51GF/u +MoG4ZOFJ4m2sY5kgT1YoINHt3z0032oNL11mA+Gj/Ez9DIIUdVnQCr+FYOJDBw/W +fqwohKIkKTdS41WsmXEWZTNSPJu0G5d0ve/0bOmm0RdSho53XbzabeHKjg== +-----END AGE ENCRYPTED FILE----- diff --git a/home/Library/Application Support/gphotos-sync/encrypted_client_secret.json b/home/.chezmoitemplates/secrets/gphotos-sync similarity index 100% rename from home/Library/Application Support/gphotos-sync/encrypted_client_secret.json rename to home/.chezmoitemplates/secrets/gphotos-sync diff --git a/home/dot_ssh/encrypted_audi b/home/.chezmoitemplates/secrets/ssh-audi similarity index 100% rename from home/dot_ssh/encrypted_audi rename to home/.chezmoitemplates/secrets/ssh-audi diff --git a/home/dot_ssh/encrypted_authorized_keys.yubikey b/home/.chezmoitemplates/secrets/ssh-authorized-keys.yubikey similarity index 100% rename from home/dot_ssh/encrypted_authorized_keys.yubikey rename to home/.chezmoitemplates/secrets/ssh-authorized-keys.yubikey diff --git a/home/dot_ssh/encrypted_blue b/home/.chezmoitemplates/secrets/ssh-blue similarity index 100% rename from home/dot_ssh/encrypted_blue rename to home/.chezmoitemplates/secrets/ssh-blue diff --git a/home/dot_ssh/encrypted_fiat b/home/.chezmoitemplates/secrets/ssh-fiat similarity index 100% rename from home/dot_ssh/encrypted_fiat rename to home/.chezmoitemplates/secrets/ssh-fiat diff --git a/home/dot_ssh/encrypted_honda b/home/.chezmoitemplates/secrets/ssh-honda similarity index 100% rename from home/dot_ssh/encrypted_honda rename to home/.chezmoitemplates/secrets/ssh-honda diff --git a/home/dot_ssh/encrypted_lab b/home/.chezmoitemplates/secrets/ssh-lab similarity index 100% rename from home/dot_ssh/encrypted_lab rename to home/.chezmoitemplates/secrets/ssh-lab diff --git a/home/dot_ssh/encrypted_lab.pub b/home/.chezmoitemplates/secrets/ssh-lab.pub similarity index 100% rename from home/dot_ssh/encrypted_lab.pub rename to home/.chezmoitemplates/secrets/ssh-lab.pub diff --git a/home/dot_ssh/encrypted_mini b/home/.chezmoitemplates/secrets/ssh-mini similarity index 100% rename from home/dot_ssh/encrypted_mini rename to home/.chezmoitemplates/secrets/ssh-mini diff --git a/home/dot_ssh/encrypted_red b/home/.chezmoitemplates/secrets/ssh-red similarity index 100% rename from home/dot_ssh/encrypted_red rename to home/.chezmoitemplates/secrets/ssh-red diff --git a/home/dot_ssh/encrypted_yellow b/home/.chezmoitemplates/secrets/ssh-yellow similarity index 100% rename from home/dot_ssh/encrypted_yellow rename to home/.chezmoitemplates/secrets/ssh-yellow diff --git a/home/Library/Application Support/gphotos-sync/symlink_client_secret.json.tmpl b/home/Library/Application Support/gphotos-sync/symlink_client_secret.json.tmpl new file mode 100644 index 00000000..bbc84c82 --- /dev/null +++ b/home/Library/Application Support/gphotos-sync/symlink_client_secret.json.tmpl @@ -0,0 +1,3 @@ +{{- if eq .host.distro.family "darwin" -}} +{{ .host.home }}/.config/gphotos-sync/client_secret.json +{{- end -}} diff --git a/home/dot_config/Google Assistant/encrypted_client-secret.json b/home/dot_config/Google Assistant/encrypted_client-secret.json index 13bd646a..60be3a22 100644 --- a/home/dot_config/Google Assistant/encrypted_client-secret.json +++ b/home/dot_config/Google Assistant/encrypted_client-secret.json @@ -1,18 +1,3 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBiWGdFUGtPeUZWejc2MlQr -TnYwd25UaUx2UWJSMnJKWXJDaVpROUhKY0hnCkJ5UDhocGRoZTNWcDB0WFVmQkZt -Z1d6NXVGV0plU0IyUS9iaVM4WXNQaTQKLS0tIGpKKzR3dnJ6bFhiQzFiL0UyZUxN -SDhhT0tFVGNRdGNCZFR6eDBCdStHZEEKAhecUqQjK8n5Ws1cFMkCn2Bf4ouCzQ3d -gxWv1bqdvNKU2kj6IYpiHBSfYCcOCbOhpr17+fckmlEoCJS/YwQ+n/U+G8HiMPRL -sV3/RN2zGR4ZmNYVYlKd1rUEwr6KbnWE1cqtUbMWG3Qom80xbz3l7tdtsNDX7Els -xUfQuWbUc7tTGSNjxOP0qPzdbLtF69cGn3mE4+hLeSAi4mMt2zmuoqKT+APBHpF1 -QGenSAqfTpuHdRfLBQ5q59I42pq/sc2n9so+/EZkGrkldY/x+JkOpQRawtvLG4Gk -8q0F2l3IuSHAz92WLbQQ7X5g57MouNNV4GrAZamifwR7Tvi5WEhuidAQyC9prwKx -52hX/V7AOQy2J56L1ZVNfqi4Bnn7sOoqnvZkM0BKndg3FjRla+svnM4C8qCQu+oF -EGs65u2oJboeanPZrq4ZgZyp+FDKCzkSYYVVyvPqZDyXHkpUamXkOM/aBB70D+jF -03mZG9pbbHzfTiK6to8IsgdDKbmqXuO3NTIXbBlDBpZirlyScA2NSOf/VHSUEGqw -5WEv9GOVU8AWgcgRsmt2+KP72cMrk0qU/ucNEKqbiI8wI9Qoh3/Ysm+zpG/9Ha1i -/AvQYrIPgie1JilwT2AqhWPsv4pUPWvu+z/hWcV2cJw9wMTiXaBCIVLPvih/ISC+ -A5/+GHbSILkDvTnCBYYZmtvdHF3gfVD+D01qaiPj/NWVCevhNuKZDZ7fFhnx78+6 -RWia2WYGJGNMhTYizH8= ------END AGE ENCRYPTED FILE----- +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "google-assistant-client-secret") -}} +{{ includeTemplate "secrets/google-assistant-client-secret" | decrypt -}} +{{ end -}} diff --git a/home/dot_config/Google Assistant/encrypted_tokens.json b/home/dot_config/Google Assistant/encrypted_tokens.json index fd292f4a..19616692 100644 --- a/home/dot_config/Google Assistant/encrypted_tokens.json +++ b/home/dot_config/Google Assistant/encrypted_tokens.json @@ -1,16 +1,3 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB3SWtYcmJDenBGUnM0ZFo3 -UlUyMEYwS1o2SUE4YkFNcjNGWUJLSjVTUmdRCnA4c2RtcE95M2h4S3ZGZUtlYTMv -YWQzTnBjRkZJM3ZtSmNkNlVHdGt0NkkKLS0tIFl4eVZyZ015Y1hIelFwRGtFbFha -eW9zdjFpTXIvM3JWeU5DQm84VUlLcUEKmgbFm85G0kJ44A92Cl0GLwi8vp4j3hj4 -NDJfn/kNDzdRcc1UUuISS8iayI4XAHj2jYAdgKe7p5nnTQX8HfCOEUVcOjPy7k9Q -rMtk5gfmD+SymM+ciGyWayv3x/I+8tbsfDi8/ME6meSgX+tniDQ89t5Yu4ol68FG -MIV/w9YOAWwvDcbV4nvnoNRw8jdtcvAKvP9gmVZGOuYKCbmk4lCRmTsF/SG+U6lV -8PC7u4Bjq0+7jRak2S3khpXgSl/H7EeM6rfIIs7HvOeja5dYLAaYLpFrTrpZPkTX -QEAoMFHX4wLQ8LGXoOCqzAlILR1uw61UGihVijoDQQQteJSbWomzMwW1IjtRwnDx -NTNgPI9jPEetje5IUhzjireWv8RpQbHf/tk7N1uZOM/jbNvUA7g81lRlTImPerPr -epYNDl/RwtfI8dW7Skm50+/BfbjOJwl1eqte6cz8JPfitxt0otgaemJ1bJaPTnss -A0m5o2cGCALhTiHRgHN2YGXi+HlV8+QU8YiHLSvSGHaZ33jlJvi8ym7j/+51GF/u -MoG4ZOFJ4m2sY5kgT1YoINHt3z0032oNL11mA+Gj/Ez9DIIUdVnQCr+FYOJDBw/W -fqwohKIkKTdS41WsmXEWZTNSPJu0G5d0ve/0bOmm0RdSho53XbzabeHKjg== ------END AGE ENCRYPTED FILE----- +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "google-assistant-tokens") -}} +{{ includeTemplate "secrets/google-assistant-tokens" | decrypt -}} +{{ end -}} diff --git a/home/dot_config/gphotos-sync/encrypted_client_secret.json b/home/dot_config/gphotos-sync/encrypted_client_secret.json index 304de151..1cfaf5aa 100644 --- a/home/dot_config/gphotos-sync/encrypted_client_secret.json +++ b/home/dot_config/gphotos-sync/encrypted_client_secret.json @@ -1,15 +1,3 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAwaVlwL0pxWVpZNlZ6RFh1 -SWJKMjN4eEZhQVJpcTZRWmFoeTBXdGNjb1NvCm94QUg3ODBRT1dnd3ExNEJnZkg5 -SmdLa0lWaThSa1BsL25ZTVkrM1JLSGcKLS0tIFRjMGw3ai9KbDh4Wm1PQVd5bWpx -aWJNTEVwa0Q1YWNEbDdqS3FLVmJYSkkKikBIQNQq1NleSoFrIzTFrTurI88TPjD/ -UHuK9JrLk3j11sj1o1fTIFasciLZ2GjVjq8V2AmBiNp+DOuW+3gu/xrpOJQ9V/0r -8x7kIZStDXbqqlMNp5tXXytZjaagDgBTwC9V9xVtzu2Dz7q50lw5QreV0AFvnUus -CeVSV04vTAZwp/oX6yMIJFVMc2MDFDNYhW0jgN6x47b2CvVPhCO4YnsQYkThQhe+ -r8USToRjEdzm/2SjTLE+b/5NiWWExmiXa62vR/l4XqsMafq90iAzMYhpcDe5OD5C -bwFS811XdjL7N6Bsd75JcL1s2cwmQL9wzJq/WitMfrK+Juh9XJcb4PP8VRp6GNDq -qDdqE70DeiRP2ecyb8XACFq5n+dULi6aNjm6IHgIJ/3/FbdP+wXzR+4gGLmqlYX+ -ErfY7N6WsM4kN6OgtZsa0d/uwmB52Y44vkDNj11jnK/W+SjFyCsCxzQDTpgqdPTr -AfJ2mu+OQLH3W6GrsnkIou0F6sgSOYfAxrDprqS0/oljxFS3xg6eVh3lOfTzr1ni -dpXhqAy8Op54Dza8OyLuEPLVPFWBRsmZfyEFVxII/xY= ------END AGE ENCRYPTED FILE----- \ No newline at end of file +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "gphotos-sync") -}} +{{ includeTemplate "secrets/gphotos-sync" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-audi b/home/dot_ssh/ssh-audi new file mode 100644 index 00000000..2bb598b2 --- /dev/null +++ b/home/dot_ssh/ssh-audi @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-audi") -}} +{{ includeTemplate "secrets/ssh-audi" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-authorized_keys.yubikey b/home/dot_ssh/ssh-authorized_keys.yubikey new file mode 100644 index 00000000..eb681f66 --- /dev/null +++ b/home/dot_ssh/ssh-authorized_keys.yubikey @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-authorized_keys.yubikey") -}} +{{ includeTemplate "secrets/ssh-authorized_keys.yubikey" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-blue b/home/dot_ssh/ssh-blue new file mode 100644 index 00000000..86398c1e --- /dev/null +++ b/home/dot_ssh/ssh-blue @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-blue") -}} +{{ includeTemplate "secrets/ssh-blue" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-fiat b/home/dot_ssh/ssh-fiat new file mode 100644 index 00000000..d4400f96 --- /dev/null +++ b/home/dot_ssh/ssh-fiat @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-fiat") -}} +{{ includeTemplate "secrets/ssh-fiat" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-honda b/home/dot_ssh/ssh-honda new file mode 100644 index 00000000..d7cf8559 --- /dev/null +++ b/home/dot_ssh/ssh-honda @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-honda") -}} +{{ includeTemplate "secrets/ssh-honda" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-lab b/home/dot_ssh/ssh-lab new file mode 100644 index 00000000..7668e250 --- /dev/null +++ b/home/dot_ssh/ssh-lab @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-lab") -}} +{{ includeTemplate "secrets/ssh-lab" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-lab.pub b/home/dot_ssh/ssh-lab.pub new file mode 100644 index 00000000..2e39af97 --- /dev/null +++ b/home/dot_ssh/ssh-lab.pub @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-lab.pub") -}} +{{ includeTemplate "secrets/ssh-lab.pub" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-mini.tmpl b/home/dot_ssh/ssh-mini.tmpl new file mode 100644 index 00000000..cc6382d5 --- /dev/null +++ b/home/dot_ssh/ssh-mini.tmpl @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-mini") -}} +{{ includeTemplate "secrets/ssh-mini" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-red.tmpl b/home/dot_ssh/ssh-red.tmpl new file mode 100644 index 00000000..63c5c054 --- /dev/null +++ b/home/dot_ssh/ssh-red.tmpl @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-red") -}} +{{ includeTemplate "secrets/ssh-red" | decrypt -}} +{{ end -}} diff --git a/home/dot_ssh/ssh-yellow.tmpl b/home/dot_ssh/ssh-yellow.tmpl new file mode 100644 index 00000000..5e6b1e73 --- /dev/null +++ b/home/dot_ssh/ssh-yellow.tmpl @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-yellow") -}} +{{ includeTemplate "secrets/ssh-yellow" | decrypt -}} +{{ end -}}