From 934c379213105298ea8217dd2fd141181dccf5f2 Mon Sep 17 00:00:00 2001 From: Sukant Hajra Date: Wed, 13 Dec 2023 14:28:41 -0800 Subject: [PATCH] Fish aliases for cloud VM --- home/target/shajra/default.nix | 1 + home/target/shajra/programs/fish/default.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 home/target/shajra/programs/fish/default.nix diff --git a/home/target/shajra/default.nix b/home/target/shajra/default.nix index 841c3fb8..6d779338 100644 --- a/home/target/shajra/default.nix +++ b/home/target/shajra/default.nix @@ -15,6 +15,7 @@ in home.homeDirectory = userConfig."${hostname}".homeDirectory; home.username = userConfig."${hostname}".username; + programs.fish = import programs/fish; programs.git = import programs/git lib; programs.i3status-rust = import programs/i3status-rust config pkgs; diff --git a/home/target/shajra/programs/fish/default.nix b/home/target/shajra/programs/fish/default.nix new file mode 100644 index 00000000..ade8dd7b --- /dev/null +++ b/home/target/shajra/programs/fish/default.nix @@ -0,0 +1,12 @@ +{ + shellAliases = { + psql-brake-ro = + ''PGPASSWORD=brakero psql --host=10.26.147.22 -U brakero brake''; + psql-brake-rw = + ''PGPASSWORD=(berglas access gs://infra-secrets/pg-brake-brakerw) \ + psql --host=10.26.147.22 -U brakerw brake''; + psql-brake-admin = + ''PGPASSWORD=(berglas access gs://infra-secrets/pg-brake-admin-postgres) \ + psql --host=10.26.147.22 -U postgres brake''; + }; +}