Merge branch 'master' of git.mvl.sh:vleeuwenmenno/dotfiles

This commit is contained in:
2024-10-31 19:04:31 +01:00
28 changed files with 390318 additions and 390276 deletions

View File

@ -14,12 +14,12 @@ else
output=$(op item get "Dotfiles Secrets" --fields password)
fi
# Check if the password was found
if [[ -z "$output" ]]; then
printfe "%s\n" "red" "Password not found in 1Password, add a login item with the name 'Dotfiles Secrets' and give it a password."
exit 1
# Check if command was a success
if [[ $? -ne 0 ]]; then
printfe "%s\n" "red" "Failed to fetch password from 1Password."
fi
token=$(echo "$output" | grep -oP "(?<=\[use 'op item get ).*(?= --)")
printfe "%s\n" "cyan" "Got fetch token: $token"

View File

@ -206,7 +206,7 @@ git_repos() {
}
homemanager() {
cd $HOME/dotfiles/config/home-manager && home-manager switch
cd $HOME/dotfiles/config/home-manager && NIXPKGS_ALLOW_UNFREE=1 home-manager switch
}
ensure_homemanager_installed() {