diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2026-08-15 16:49:10 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2026-08-15 16:49:10 +0100 |
| commit | 514834d7d3ec7a6bd37b6d0935b361f986f2a24d (patch) | |
| tree | 71289c397807de4f26b39239ce535a37f3cecc1e | |
| parent | 53533a0f382e4494910a479f3cdab00ccda32edc (diff) | |
Improve se alias so that it points to .sops.yaml
| -rw-r--r-- | bash/.bash_aliases | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 0099a19..67b8934 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -14,6 +14,7 @@ alias gl='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short' # Nixos alias ras='sudo nixos-rebuild switch --flake .#' +alias rash='nixos-rebuild switch --flake .#calcifer --target-host root@2.29.11.43' # Tmux tm() { @@ -54,10 +55,9 @@ se() { fi if [ ! -f "$SECRET_PATH" ]; then - echo "Error: Secret file not found at $SECRET_PATH" - echo "Creating new secret file for $SYSTEM..." + echo "Creating new secret file for $SYSTEM at $SECRET_PATH..." mkdir -p "$(dirname "$SECRET_PATH")" fi - sops "$SECRET_PATH" + sops --config "$REPO_ROOT/.sops.yaml" "$SECRET_PATH" } |
