From b8597f51a00f68fe005017c00c530c3380876ea1 Mon Sep 17 00:00:00 2001 From: foosinn Date: Sun, 14 Jun 2020 11:08:54 +0200 Subject: [PATCH 1/3] set window title --- roles/base.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/roles/base.nix b/roles/base.nix index b44a0de..87ff71a 100644 --- a/roles/base.nix +++ b/roles/base.nix @@ -38,15 +38,20 @@ in { eval $(ssh-agent) fi - pw () { + set_win_title() { + echo -ne "\033]0;$USER@$HOSTNAME: $PWD\007" + } + starship_precmd_user_func=set_win_title + + pw() { len=''${1:-$(( $RANDOM % 24 + 8 ))} tr -dc a-zA-Z0-9 < /dev/urandom | head -c $len echo } - cdg() { gitroot=$(until [ -d .git ]; do [ "$PWD" == "/" ] && exit 1; cd ..; done; echo $PWD) if [ $? == 0 ]; then +precmd_user_func = "title" cd $gitroot else echo "gitroot not found." From 5ef2f3b1c697850955a155329e6573c75a73b962 Mon Sep 17 00:00:00 2001 From: foosinn Date: Sun, 14 Jun 2020 11:09:32 +0200 Subject: [PATCH 2/3] add openssl --- roles/base.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/base.nix b/roles/base.nix index 87ff71a..28846a8 100644 --- a/roles/base.nix +++ b/roles/base.nix @@ -14,6 +14,7 @@ in { htop jq ncdu + openssl ripgrep z-lua unstable.starship From 4723d6b75bd2a189242933156e00aa687f107d4b Mon Sep 17 00:00:00 2001 From: foosinn Date: Sun, 14 Jun 2020 11:09:48 +0200 Subject: [PATCH 3/3] hello wireguard --- configuration.nix | 1 + roles/vpn.nix | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 roles/vpn.nix diff --git a/configuration.nix b/configuration.nix index ace14f5..c3aa043 100644 --- a/configuration.nix +++ b/configuration.nix @@ -18,6 +18,7 @@ ./roles/base.nix ./roles/desktop.nix ./roles/wireless.nix + ./roles/vpn.nix ]; boot.loader.systemd-boot.enable = true; diff --git a/roles/vpn.nix b/roles/vpn.nix new file mode 100644 index 0000000..361713f --- /dev/null +++ b/roles/vpn.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + wireguard + ]; +}