From c300f0ba940ed8e0358e65227a6add34e88dfea8 Mon Sep 17 00:00:00 2001 From: James Eversole Date: Tue, 4 Jul 2023 09:21:22 -0500 Subject: [PATCH] Update my PS1; add redirect for Purr --- nix/application/nginx.nix | 5 ++++- nix/user/users.nix | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nix/application/nginx.nix b/nix/application/nginx.nix index 25482cb..5d5d110 100644 --- a/nix/application/nginx.nix +++ b/nix/application/nginx.nix @@ -54,7 +54,10 @@ target = "http://127.0.0.1:3001"; }; "eversole.co" = static { dir = "/var/www/jame.su"; }; - "git.eversole.co" = proxied { target = "http://127.0.0.1:26616"; }; + "git.eversole.co" = base { + "/".proxyPass = "http://127.0.0.1:26616"; + "/purr".return = "301 https://git.eversole.co/James/purr"; + }; "graf.matri.cx" = { root = "/var/www/graf.matri.cx"; }; # refer to /monitoring/nginx.nix "hydra.matri.cx" = proxied { target = "http://127.0.0.1:3034"; diff --git a/nix/user/users.nix b/nix/user/users.nix index 9410f65..a304342 100644 --- a/nix/user/users.nix +++ b/nix/user/users.nix @@ -1,4 +1,7 @@ { config, pkgs, ... }: { + programs.bash.promptInit = '' + PS1="\n\[\033[01;32m\]\u $\[\033[00m\]\[\033[01;36m\] \w >\[\033[00m\] " + ''; users.users = { sezycei = { isNormalUser = true;