diff --git a/home/.chezmoidata.yaml b/home/.chezmoidata.yaml index 88c8cc52..c4ee6364 100644 --- a/home/.chezmoidata.yaml +++ b/home/.chezmoidata.yaml @@ -556,6 +556,7 @@ softwareGroups: - ngrok - ssl-proxy - tailscale + - tailscale-client - warp Orchestration: &Orchestration - nomad diff --git a/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl index 9430ffd3..26007622 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl @@ -1,7 +1,5 @@ -#!/usr/bin/env bash - -### Connect to Tailscale network -if command -v tailscale > /dev/null && [ "{{ .user.TAILSCALE_AUTH_KEY }}" != "" ]; then - logg info 'Connecting to Tailscale with user-defined authentication key' - tailscale up --authkey={{ .user.TAILSCALE_AUTH_KEY }} && logg success 'Connected to Tailscale network' -fi +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "tailscale")) -}} +{{ includeTemplate "secrets/tailscale" | decrypt -}} +{{ else if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "tailscale-fallback")) -}} +{{ includeTemplate "secrets/tailscale-fallback" }} +{{- end -}} \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/ghorg b/home/.chezmoitemplates/secrets/ghorg index e69de29b..7cf67af1 100644 --- a/home/.chezmoitemplates/secrets/ghorg +++ b/home/.chezmoitemplates/secrets/ghorg @@ -0,0 +1,186 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSA5WmtYMXV6K21NWldPc3g4 +VXA4dzJHQTNDQ3ByNmJOb3N1dEZ1ck56Q3lFCkNjeEdha2w3RElBdnh6Y0ZQRXZo +OEcxUTNXcFlSR2ErWXB6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end of file diff --git a/home/.chezmoitemplates/secrets/gist b/home/.chezmoitemplates/secrets/gist new file mode 100644 index 00000000..aa3f1264 --- /dev/null +++ b/home/.chezmoitemplates/secrets/gist @@ -0,0 +1,9 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBlQi9vZncrUXduQWlCdzB0 +SkFmSUpEZW95R21Jc3p2WElYK1gxcW96YzNnCkZjSmZHNS94a0pRclNmdUdyMFVP +RXdXa3oyVUFTLy9PNEIrUk9pcURnWHcKLS0tIFlLVTdnTVFVN3g0TGtQT01RRnpK +c1RNWEg3ckt1blhxQ2UvVVZkRGFLUDQKlaFMP2aDfW4P+nYRKxV6tuAOMQGyloFI +T0AsckE6HFX6gNINUOwUNZJfyHegjgbiv00+mCwEf8Y618XUZn/vJihZc74cQ/y0 +ZmkPr8FBvwwD/pDFaAfWFN3OuiUB5KwhM5l0bgDbHOPqZmG2/cT4P6Nu0nuNKU1N +uh0owEonxlXGMwR7jw== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/gist-fallback b/home/.chezmoitemplates/secrets/gist-fallback new file mode 100644 index 00000000..e71cd0ad --- /dev/null +++ b/home/.chezmoitemplates/secrets/gist-fallback @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +echo "{{ .user.GITHUB_GIST_TOKEN }}" > ~/.gist +gist $* +rm -f ~/.gist diff --git a/home/.chezmoitemplates/secrets/ngrok b/home/.chezmoitemplates/secrets/ngrok index e69de29b..b754156e 100644 --- a/home/.chezmoitemplates/secrets/ngrok +++ b/home/.chezmoitemplates/secrets/ngrok @@ -0,0 +1,8 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSB0NzFNUVRodFpFbzI1VmxU +bzk3ajVpaUdwUXJVRW9qOElyOTZCalVrbTJvCmg5UVpHT2ZnRlMxUzUrMk9yR0VE +aTdINlVOM04weVJ0ME1BWkdxQ05kQlkKLS0tIGpPVllEUWlMNmRJT1ZoVUpQb1Rl +N3VBeXdXMEZ6SlRCNGpIbzlVMlVWaVkKjKWy+2FM4edw+AoD776u6aWLG/BZabZo +PS7SRsQT+XAr4WoVX4lESosxzl1lFBrtSGLkxL5yWTwNmbEZVAkPNsfWtdMHj/Rv +gnTwIggp5RJwWcDnTNcSJ/sCnB8uHVjGvbH48KCmKd1GMg== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/ngrok-fallback b/home/.chezmoitemplates/secrets/ngrok-fallback index 00a1c38c..a6bc0e4d 100644 --- a/home/.chezmoitemplates/secrets/ngrok-fallback +++ b/home/.chezmoitemplates/secrets/ngrok-fallback @@ -1,2 +1,2 @@ ---- +version: "2" authtoken: '{{ .user.NGROK_AUTH_TOKEN }}' diff --git a/home/.chezmoitemplates/secrets/slack-term b/home/.chezmoitemplates/secrets/slack-term new file mode 100644 index 00000000..e1888080 --- /dev/null +++ b/home/.chezmoitemplates/secrets/slack-term @@ -0,0 +1,47 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBURUtSeHhGWXRHY3hiWjR6 +cEsybHUzSnF1M1pleEpnd0c1MVdsSFo5YTF3Cll2RExOck9TMmE0SmJqYWFLZEJG +MUhsc21YWUprRTNzb1VHRWtJVy9TZ2MKLS0tIGkrRVFmb0pheFBqMktPbjNHaFdS +SHdQcUF1VkZuYVhyWXVzQ3ZnUDZYdmMKVsiujjIfmYDSdSmPpgueFxMq9vY38d/W +1w8HC/rpDVBgh0un9IPkC0jVLbaMbjEHr+RoVhNi0LzMl+BPbwpMN/1FgN3KK05B +dbIBaP/xA9MMS0rfKvHXtrUsBAJ4hgNGdOlhiaCCRVtEAI0rMc0bYfIuZoxiJyS4 +EM6ohaZTygNTSH68mq5vsZwcip9zTRh602pLsnwrigjE93FKQ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nXV2V+Z9i/a4fEnY2TqZQHEM5N9JtLRDAhWh +I1UnhUFhm43pCil3l6o0IF9bC3pAL6TrSxqgYRt6mS0Le0xCGFsKjSc7flVE33jI +gpmb/zt/pamjOVnmwQjf4IQLS0VqhIxmK0OkGzU6ZjhAXtyVtlrlyBTtvWuYvqH3 +8alpP+8kfBw3foZr4t/25OZDgExcSNH5/16tfffnBUIYUZXce0avySZQZ+QOEj97 +bBlFPeVzotiMCjDMb3jFoEPzN/26OpBIUzk/R52wOa2FkLG/jAQjJPR/o6+YW8dz +ndOWxTkW3LeRalRhafl6Ae8DX2IGfgKc5xBJSyl9c8Je +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/slack-term-fallback b/home/.chezmoitemplates/secrets/slack-term-fallback new file mode 100644 index 00000000..61a15c19 --- /dev/null +++ b/home/.chezmoitemplates/secrets/slack-term-fallback @@ -0,0 +1,70 @@ +{ + "slack_token": "{{ .user.SLACK_API_TOKEN }}", + "sidebar_width": 3, + "notify": "mention", + "emoji": true, + "key_map": { + "command": { + "i": "mode-insert", + "/": "mode-search", + "k": "channel-up", + "j": "channel-down", + "g": "channel-top", + "G": "channel-bottom", + "K": "thread-up", + "J": "thread-down", + "": "chat-up", + "C-b": "chat-up", + "C-u": "chat-up", + "": "chat-down", + "C-f": "chat-down", + "C-d": "chat-down", + "n": "channel-search-next", + "N": "channel-search-previous", + "'": "channel-jump", + "q": "quit", + "": "help" + }, + "insert": { + "": "cursor-left", + "": "cursor-right", + "": "send", + "": "mode-command", + "": "backspace", + "C-8": "backspace", + "": "delete", + "": "space" + }, + "search": { + "": "cursor-left", + "": "cursor-right", + "": "clear-input", + "": "clear-input", + "": "backspace", + "C-8": "backspace", + "": "delete", + "": "space" + } + }, + "theme": { + "view": { + "fg": "white", + "bg": "default", + "border_fg": "white", + "border_bg": "", + "label_fg": "white", + "label_bg": "" + }, + "channel": { + "prefix": "", + "icon": "", + "text": "" + }, + "message": { + "time_format": "15:04", + "name": "", + "time": "", + "text": "" + } + } +} \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/tailscale b/home/.chezmoitemplates/secrets/tailscale new file mode 100644 index 00000000..5f074f80 --- /dev/null +++ b/home/.chezmoitemplates/secrets/tailscale @@ -0,0 +1,24 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBPa204TWtzVGVqOTlLRGMw +QkhRa2V4VEpLa2NWSXVkaFFUZmNEUXRyZlJnCjhSQ3hYMFUyQ2xsWnZQOUhxVG9C +ZWx4ckNKVjVKd3c2VG9GS1liV3hOV0EKLS0tIGVOQVdxYUNOT3lCanlKS2J1Rmky +SG02ZWV3QlcreFJ0YkVrMVh2Y2FnMGsKPi1IqzPFU5QX4nwn6tIPPAU6xYhYFE+t +StszmuQIwSd7butP91I866ss2Ov/Kgm+LjtxW7QBR0z2cgZ90PODasUYvWtcATbY +yeJ3PDy5bTPDSeS8+t0Z9Z6UZCfQduT2VL3w2OII9gg6pFciAzZJYW5+buFNA1OE +1BBMmNGw3K/o5xejCfB6hrx53qaWhd+aTCvj3VsZlpaIpCeuD5plKi8cWztO2KVM +5S0qMMfTP5o6Y8WN9jpQTt1yPlWnJ56fXJI7JDv+/pfipMzngRViNvirhJkbpDj3 +e2178xZc+okDpbbgSn8JcNYVbaDLXJvI1awtt5WoLn9Wi1JwefhtMRSziDm8ulfT +f9xFmE6hlGV3ulgBGf11n5pvhhvjRu93LT+BvKGWa7Lj911OUbT8nl3CgqncJno1 +SH3hXNuZbq4pn6MDhboW+EaPpA604NXtpYpcejOryi9TSndkHi3vDZ1B24QIFsNu +0fKCu03+PQyalpPax/6zhJ2+GVGsfxy10UqUAu7I7LwY67APpK1ikRTmeVocS3Lv +VhSJjdydtkzOhtnJkX6SF2aiCspvrGGE4n3RZeLnsyzzm3YOG7JFjEtQvBSyU1Bk +B2QA+hkrDsaE/rbjkLJ61Nwa/1HEKYNSQ41HYFVYszMwpsUbJB8sJRGzFFkIc1oW +WibmhnbYf8s+1Wtu02sSsrfgKu6RfleRMsTVW5rua0ENq6DCFMpb3kZYFLG4Dzk5 +4oJUJzz7AonhsdKw82ntVh9+ZUmhheLREv70PGYDaVYw9YyDZtdyskc423AtIOed +Zom5uuJqQD0dkDa+1qeIRIlGV0ll/hS/ZO2jFCeqqvTBKIPbOBS0eNFVgyU5UQyl +8gr8URzn7qj76v39jWN0EkWL8zC5aYG5UME9osL2a0kDhzg+V0hynEsoMPpyz05Z +CFOz2pv1PpJOg26FnCOHjKVPD8Nbp6YyVPD95sj5K+tOlEw6dDZfow5nrqUoEss/ +88t+3DLIJMOJ87HmeVrR0qMirp70YaOQ5QZU/u/zlWyEOGQQzNj0Fnej4RJ8tsf2 +pR+7v/valy/nKAby9XJDqWbhZPuIarambMOBl51/KmHjpVjtRScxktTCTjaEPANW +th9brw== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/tailscale-fallback b/home/.chezmoitemplates/secrets/tailscale-fallback new file mode 100644 index 00000000..34becde3 --- /dev/null +++ b/home/.chezmoitemplates/secrets/tailscale-fallback @@ -0,0 +1,19 @@ +#!/usr/bin/env bash + +### Install the Tailscale system daemon +if [ -d /Applications ] && [ -d System ]; then + # macOS + if command -v tailscaled > /dev/null; then + logg info 'Ensuring `tailscaled` system daemon is installed' + sudo tailscaled install-system-daemon + logg info '`tailscaled` system daemon is now installed and will load on boot' + else + logg info '`tailscaled` does not appear to be installed' + fi +fi + +### Connect to Tailscale network +if command -v tailscale > /dev/null && [ "{{ .user.TAILSCALE_AUTH_KEY }}" != "" ]; then + logg info 'Connecting to Tailscale with user-defined authentication key' + tailscale up --authkey={{ .user.TAILSCALE_AUTH_KEY }} && logg success 'Connected to Tailscale network' +fi diff --git a/home/dot_config/slack-term/config.tmpl b/home/dot_config/slack-term/config.tmpl index 137d897f..f2d4bf06 100644 --- a/home/dot_config/slack-term/config.tmpl +++ b/home/dot_config/slack-term/config.tmpl @@ -1,88 +1,5 @@ -{ - "slack_token": "{{ .user.SLACK_API_TOKEN }}", - - // OPTIONAL: set the width of the sidebar (between 1 and 11), default is 1 - "sidebar_width": 1, - - // OPTIONAL: turn on desktop notifications for all incoming messages, set - // the value as: "all". For only mentions and im messages set the - // value as: "mention", default is turned off: "" - "notify": "mention", - - // OPTIONAL: turn on emoji's, default is false - "emoji": true, - - // OPTIONAL: define custom key mappings, defaults are: - "key_map": { - "command": { - "i": "mode-insert", - "/": "mode-search", - "k": "channel-up", - "j": "channel-down", - "g": "channel-top", - "G": "channel-bottom", - "K": "thread-up", - "J": "thread-down", - "": "chat-up", - "C-b": "chat-up", - "C-u": "chat-up", - "": "chat-down", - "C-f": "chat-down", - "C-d": "chat-down", - "n": "channel-search-next", - "N": "channel-search-previous", - "'": "channel-jump", - "q": "quit", - "": "help" - }, - "insert": { - "": "cursor-left", - "": "cursor-right", - "": "send", - "": "mode-command", - "": "backspace", - "C-8": "backspace", - "": "delete", - "": "space" - }, - "search": { - "": "cursor-left", - "": "cursor-right", - "": "clear-input", - "": "clear-input", - "": "backspace", - "C-8": "backspace", - "": "delete", - "": "space" - } - }, - - // OPTIONAL: override the default theme, defaults are: - "theme": { - "view": { - "fg": "white", - "bg": "default", - "border_fg": "white", - "border_bg": "", - "label_fg": "white", - "label_bg": "" - }, - "channel": { - "prefix": "", - "icon": "", - "text": "" - }, - "message": { - // This uses golang time formatting: - // - https://yourbasic.org/golang/format-parse-string-time-date-example/ - // - https://golang.org/pkg/time/#Time.Format - "time_format": "15:04", - - // You can use 'colorize' to give every name an individual color - "name": "", - - "time": "", - "text": "" - } - } -} +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "slack-term")) -}} +{{ includeTemplate "secrets/slack-term" | decrypt -}} +{{ else if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "slack-term-fallback")) -}} +{{ includeTemplate "secrets/slack-term-fallback" }} +{{- end -}} \ No newline at end of file diff --git a/home/dot_local/bin/executable_gist.tmpl b/home/dot_local/bin/executable_gist.tmpl index e71cd0ad..c7f97063 100644 --- a/home/dot_local/bin/executable_gist.tmpl +++ b/home/dot_local/bin/executable_gist.tmpl @@ -1,5 +1,5 @@ -#!/usr/bin/env bash - -echo "{{ .user.GITHUB_GIST_TOKEN }}" > ~/.gist -gist $* -rm -f ~/.gist +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "gist")) -}} +{{ includeTemplate "secrets/gist" | decrypt -}} +{{ else if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "gist-fallback")) -}} +{{ includeTemplate "secrets/gist-fallback" }} +{{- end -}} \ No newline at end of file diff --git a/software.yml b/software.yml index a1d3ff36..954f8c33 100644 --- a/software.yml +++ b/software.yml @@ -7310,16 +7310,23 @@ softwarePackages: _github: https://github.com/tailscale/tailscale _home: https://tailscale.com/ _name: Tailscale - _post: sudo tailscale up + _service:brew: tailscale _service:pacman: tailscaled ansible: professormanhattan.tailscale brew: tailscale - cask: tailscale - choco: tailscale + go: tailscale.com/cmd/tailscale{,d}@main pacman: tailscale port: tailscale - _service: true _type: cli + tailscale-client: + _bin: tailscale-client + _desc: The Tailscale Client is a menubar app available on macOS and Windows that allows you to easily login and configure Tailscale. + _github: https://github.com/tailscale/tailscale + _home: https://tailscale.com/ + _name: Tailscale Client + _when:cask: '! test -d "/Applications/Tailscale.app"' + cask: tailscale + choco: tailscale task: _bin: task _desc: A task runner / simpler Make alternative written in Go