Compare commits
2 Commits
a8dcdeef92
...
36059fda6b
Author | SHA1 | Date | |
---|---|---|---|
36059fda6b
|
|||
f202924393
|
@@ -4,4 +4,11 @@
|
||||
./configuration.nix
|
||||
../../profiles/base
|
||||
];
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"nexus-3.70.1-02"
|
||||
];
|
||||
services.nexus = {
|
||||
enable = true;
|
||||
package = pkgs.nexus3;
|
||||
};
|
||||
}
|
||||
|
@@ -42,4 +42,21 @@
|
||||
usbutils
|
||||
pciutils
|
||||
];
|
||||
programs.bash.promptInit = ''
|
||||
# Provide a nice prompt if the terminal supports it.
|
||||
if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then
|
||||
PROMPT_COLOR="38;5;253m"
|
||||
PATH_PROMPT_COLOR="38;5;199m"
|
||||
((UID)) && PROMPT_COLOR="1;32m"
|
||||
if [ -n "$INSIDE_EMACS" ]; then
|
||||
# Emacs term mode doesn't support xterm title escape sequence (\e]0;)
|
||||
PS1="[\[\033[$PROMPT_COLOR\]\u\033[0m@\H:\033[1m\033[$PATH_PROMPT_COLOR\w\a\]\[\033[0m\]]\$ "
|
||||
else
|
||||
PS1="[\[\033[$PROMPT_COLOR\]\u\033[0m@\H:\033[1m\033[$PATH_PROMPT_COLOR\w\a\]\[\033[0m\]]\$ "
|
||||
fi
|
||||
if test "$TERM" = "xterm"; then
|
||||
PS1="\[\033]2;\h:\u:\w\007\]$PS1"
|
||||
fi
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
Reference in New Issue
Block a user