Compare commits
No commits in common. "4723d6b75bd2a189242933156e00aa687f107d4b" and "dcc39189b7b232b0877aa553d56281902ba088a4" have entirely different histories.
4723d6b75b
...
dcc39189b7
3 changed files with 2 additions and 16 deletions
|
@ -18,7 +18,6 @@
|
||||||
./roles/base.nix
|
./roles/base.nix
|
||||||
./roles/desktop.nix
|
./roles/desktop.nix
|
||||||
./roles/wireless.nix
|
./roles/wireless.nix
|
||||||
./roles/vpn.nix
|
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
|
|
|
@ -14,7 +14,6 @@ in {
|
||||||
htop
|
htop
|
||||||
jq
|
jq
|
||||||
ncdu
|
ncdu
|
||||||
openssl
|
|
||||||
ripgrep
|
ripgrep
|
||||||
z-lua
|
z-lua
|
||||||
unstable.starship
|
unstable.starship
|
||||||
|
@ -39,20 +38,15 @@ in {
|
||||||
eval $(ssh-agent)
|
eval $(ssh-agent)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set_win_title() {
|
pw () {
|
||||||
echo -ne "\033]0;$USER@$HOSTNAME: $PWD\007"
|
|
||||||
}
|
|
||||||
starship_precmd_user_func=set_win_title
|
|
||||||
|
|
||||||
pw() {
|
|
||||||
len=''${1:-$(( $RANDOM % 24 + 8 ))}
|
len=''${1:-$(( $RANDOM % 24 + 8 ))}
|
||||||
tr -dc a-zA-Z0-9 < /dev/urandom | head -c $len
|
tr -dc a-zA-Z0-9 < /dev/urandom | head -c $len
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
cdg() {
|
cdg() {
|
||||||
gitroot=$(until [ -d .git ]; do [ "$PWD" == "/" ] && exit 1; cd ..; done; echo $PWD)
|
gitroot=$(until [ -d .git ]; do [ "$PWD" == "/" ] && exit 1; cd ..; done; echo $PWD)
|
||||||
if [ $? == 0 ]; then
|
if [ $? == 0 ]; then
|
||||||
precmd_user_func = "title"
|
|
||||||
cd $gitroot
|
cd $gitroot
|
||||||
else
|
else
|
||||||
echo "gitroot not found."
|
echo "gitroot not found."
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
wireguard
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue