Skip to content

Commit

Permalink
Fish aliases for cloud VM
Browse files Browse the repository at this point in the history
  • Loading branch information
Sukant Hajra committed Dec 13, 2023
1 parent 5b6beec commit 934c379
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions home/target/shajra/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
12 changes: 12 additions & 0 deletions home/target/shajra/programs/fish/default.nix
Original file line number Diff line number Diff line change
@@ -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'';
};
}

0 comments on commit 934c379

Please sign in to comment.