Compare commits

..

No commits in common. "9ec699d16ee0674bbc529d1f160b091234532b04" and "4b0a1c3fa6ee2be682f42cec8397b8dc055b72fe" have entirely different histories.

3 changed files with 9 additions and 11 deletions

View file

@ -103,9 +103,9 @@ gen-user-key() {
local keyname="${1}" local keyname="${1}"
local public_key="${2}" local public_key="${2}"
local working_directory="${3:-$(pwd)}" local working_directory="${3:-$(pwd)}"
local begin_marker='#-----BEGIN USER PUBLIC KEYS-----' local begin_marker='#-----BEGIN USER-SECRETS-----'
local end_marker='#------END USER PUBLIC KEYS------' local end_marker='#------END USER-SECRETS------'
local input_file="${working_directory}/secrets/secrets.nix" local input_file="${working_directory}/secrets.nix"
local userkey local userkey
if [[ ${public_key} == "EMPTY" ]]; then if [[ ${public_key} == "EMPTY" ]]; then
@ -130,9 +130,9 @@ get-host-key() {
local target="${2}" local target="${2}"
local type="${3:-ssh-ed25519}" local type="${3:-ssh-ed25519}"
local working_directory="${4:-$(pwd)}" local working_directory="${4:-$(pwd)}"
local begin_marker='#-----BEGIN SYSTEM PUBLIC KEYS-----' local begin_marker='#-----BEGIN SYSTEM-SECRETS-----'
local end_marker='#------END SYSTEM PUBLIC KEYS------' local end_marker='#------END SYSTEM-SECRETS------'
local input_file="${working_directory}/secrets/secrets.nix" local input_file="${working_directory}/secrets.nix"
local hostkey local hostkey
echo "getting host public key for host ${keyname}" echo "getting host public key for host ${keyname}"

View file

@ -7,9 +7,6 @@ Include /Users/phg/.colima/ssh_config
Include config.d/*.config Include config.d/*.config
Include config.d/*/*.config Include config.d/*/*.config
{%@@ if profile == 'susanoo.local' or profile == 'WVDEWOBMC001307' @@%}# {%@@ if profile == 'susanoo.local' or profile == 'WVDEWOBMC001307' @@%}Host *
# This have to be LAST
#
Host *
IdentityAgent "~/Library/Group Containers/group.strongbox.mac.mcguill/agent.sock" IdentityAgent "~/Library/Group Containers/group.strongbox.mac.mcguill/agent.sock"
{%@@ endif @@%} {%@@ endif @@%}

View file

@ -80,6 +80,7 @@ ZSH_PYENV_VIRTUALENV="true"
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
ag
aws aws
colored-man-pages colored-man-pages
cp cp
@ -108,6 +109,7 @@ plugins=(
tig tig
themes themes
vscode vscode
#zsh-completions (https://github.com/zsh-users/zsh-completions/issues/603)
zsh-navigation-tools zsh-navigation-tools
zsh-ssh zsh-ssh
{%@@ if profile == 'ymir' or profile == 'susanoo.local' @@%} # Mac specifics {%@@ if profile == 'ymir' or profile == 'susanoo.local' @@%} # Mac specifics
@ -172,7 +174,6 @@ source ${ZSH}/oh-my-zsh.sh
alias ssh-no-check="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" alias ssh-no-check="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
alias ssh-strongbox-keys="SSH_AUTH_SOCK=~/Library/Group\ Containers/group.strongbox.mac.mcguill/agent.sock ssh-add -l" alias ssh-strongbox-keys="SSH_AUTH_SOCK=~/Library/Group\ Containers/group.strongbox.mac.mcguill/agent.sock ssh-add -l"
alias agenix='RULES='\''./secrets/secrets.nix'\'' agenix'
alias agenix-edit="agenix -i {{@@ env['HOME'] @@}}/.ssh/agenix-phg -e" alias agenix-edit="agenix -i {{@@ env['HOME'] @@}}/.ssh/agenix-phg -e"
# Initialize pyenv # Initialize pyenv