From 02b8f43efc8c0ff6e313394fcbcceaafbdf90df8 Mon Sep 17 00:00:00 2001 From: foosinn Date: Sun, 30 Aug 2020 12:40:39 +0200 Subject: [PATCH 1/2] cleanup --- roles/base.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/base.nix b/roles/base.nix index 3eccdfb..a8867a6 100644 --- a/roles/base.nix +++ b/roles/base.nix @@ -7,7 +7,7 @@ in { bash bat direnv - fd + fd fzf git gnupg From 0c231f7a87332be2e9221158df42ca1347db4472 Mon Sep 17 00:00:00 2001 From: foosinn Date: Sun, 30 Aug 2020 12:41:06 +0200 Subject: [PATCH 2/2] autostart sway on first console --- roles/base.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/base.nix b/roles/base.nix index a8867a6..a847708 100644 --- a/roles/base.nix +++ b/roles/base.nix @@ -60,11 +60,15 @@ precmd_user_func = "title" return 1 fi } - + . "$(fzf-share)/key-bindings.bash" . "$(fzf-share)/completion.bash" . <(z --init bash) . <(direnv hook bash) + + if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + exec startsway + fi ''; shellAliases = {