Update 3 files
- /home/.chezmoidata.yaml - /home/.chezmoiscripts/universal/run_onchange_after_40-firefox.tmpl - /home/dot_local/share/firefox/profiles.ini.tmpl
This commit is contained in:
parent
fa25ee5aae
commit
96f4798b56
3 changed files with 34 additions and 12 deletions
|
@ -68,7 +68,7 @@ chromeExtensions:
|
||||||
- https://chrome.google.com/webstore/detail/web-archives/hkligngkgcpcolhcnkgccglchdafcnao
|
- https://chrome.google.com/webstore/detail/web-archives/hkligngkgcpcolhcnkgccglchdafcnao
|
||||||
- https://chrome.google.com/webstore/detail/web-vitals/ahfhijdlegdabablpippeagghigmibma
|
- https://chrome.google.com/webstore/detail/web-vitals/ahfhijdlegdabablpippeagghigmibma
|
||||||
firefoxPublicProfile: https://github.com/ProfessorManhattan/firefox-profile-with-plugins.git
|
firefoxPublicProfile: https://github.com/ProfessorManhattan/firefox-profile-with-plugins.git
|
||||||
firefoxPrivateProfile:
|
firefoxPrivateProfile: https://public.megabyte.space/profile.private.tar.gz.age
|
||||||
firefoxAddOns:
|
firefoxAddOns:
|
||||||
- automa
|
- automa
|
||||||
- bitwarden-password-manager
|
- bitwarden-password-manager
|
||||||
|
|
|
@ -177,17 +177,24 @@ for SETTINGS_DIR in "$HOME/snap/firefox/common/.mozilla/firefox" "$HOME/.var/app
|
||||||
git clone {{ .firefoxPublicProfile }} profile.git
|
git clone {{ .firefoxPublicProfile }} profile.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) }}
|
||||||
### Private hosted profile
|
### Private hosted profile
|
||||||
if [ ! -d "$SETTINGS_DIR/profile.private" ]; then
|
if [ ! -d "$SETTINGS_DIR/profile.private" ]; then
|
||||||
logg info 'Downloading the encrypted Firefox private profile'
|
logg info 'Downloading the encrypted Firefox private profile'
|
||||||
|
cd "$SETTINGS_DIR"
|
||||||
curl -sSL '{{ .firefoxPrivateProfile }}' -o profile.private.tar.gz.age
|
curl -sSL '{{ .firefoxPrivateProfile }}' -o profile.private.tar.gz.age
|
||||||
logg info 'Decrypting the Firefox private profile'
|
logg info 'Decrypting the Firefox private profile'
|
||||||
chezmoi decrypt profile.private.tar.gz.age > profile.private.tar.gz
|
chezmoi decrypt profile.private.tar.gz.age > profile.private.tar.gz || EXIT_DECRYPT_CODE=$?
|
||||||
|
if [ -z "$EXIT_DECRYPT_CODE" ]; then
|
||||||
rm -f profile.private.tar.gz.age
|
rm -f profile.private.tar.gz.age
|
||||||
logg info 'Decompressing the Firefox private profile'
|
logg info 'Decompressing the Firefox private profile'
|
||||||
tar -xzf profile.private.tar.gz
|
tar -xzf profile.private.tar.gz
|
||||||
logg success 'The Firefox private profile was successfully installed'
|
logg success 'The Firefox private profile was successfully installed'
|
||||||
|
else
|
||||||
|
logg error 'Failed to decrypt the private Firefox profile'
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
### Add the populated profiles.ini
|
### Add the populated profiles.ini
|
||||||
logg info "Copying "${XDG_DATA_HOME:-$HOME/.local/share}/firefox/profiles.ini" to profile directory"
|
logg info "Copying "${XDG_DATA_HOME:-$HOME/.local/share}/firefox/profiles.ini" to profile directory"
|
||||||
|
|
|
@ -1,17 +1,32 @@
|
||||||
[Profile3]
|
[Profile6]
|
||||||
|
Name=Default (w/ plugins)
|
||||||
|
IsRelative=1
|
||||||
|
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.plugins
|
||||||
|
|
||||||
|
[Profile5]
|
||||||
|
Name=Automation
|
||||||
|
IsRelative=1
|
||||||
|
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.automation
|
||||||
|
|
||||||
|
[Profile4]
|
||||||
Name=Development
|
Name=Development
|
||||||
IsRelative=1
|
IsRelative=1
|
||||||
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.development
|
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.development
|
||||||
|
|
||||||
[Profile2]
|
[Profile3]
|
||||||
Name=Secondary
|
Name=Miscellaneous
|
||||||
IsRelative=1
|
IsRelative=1
|
||||||
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.secondary
|
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.miscellaneous
|
||||||
|
|
||||||
|
[Profile2]
|
||||||
|
Name=Private
|
||||||
|
IsRelative=1
|
||||||
|
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.private
|
||||||
|
|
||||||
[Profile1]
|
[Profile1]
|
||||||
Name=Primary
|
Name=Git (Public)
|
||||||
IsRelative=1
|
IsRelative=1
|
||||||
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.primary
|
Path={{ if eq .host.distro.family "darwin" }}Profiles/{{ end }}profile.git
|
||||||
Default=1
|
Default=1
|
||||||
|
|
||||||
[Profile0]
|
[Profile0]
|
||||||
|
|
Loading…
Reference in a new issue