From 1fdebac78773d82a1c761081e47f48b9321987fd Mon Sep 17 00:00:00 2001 From: lucy Date: Thu, 23 Jul 2026 15:16:43 +0200 Subject: [PATCH] move bash config to configuration.ix and add devenv hook --- configuration.nix | 5 +++++ home/home.nix | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/configuration.nix b/configuration.nix index b3fa705..287f226 100644 --- a/configuration.nix +++ b/configuration.nix @@ -64,11 +64,16 @@ ]; programs.bash = { + completion.enable = true; + shellAliases = { + "rebuild" = "doas nixos-rebuild switch --flake $HOME/nixos/ --impure"; + }; promptInit = '' PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' ''; interactiveShellInit = '' complete -F _command doas + eval "$(devenv hook bash)" ''; }; # Enable CUPS to print documents. diff --git a/home/home.nix b/home/home.nix index 38ec08a..7887db7 100644 --- a/home/home.nix +++ b/home/home.nix @@ -57,13 +57,6 @@ }; }; }; - programs.bash = { - enable = true; - enableCompletion = true; - shellAliases = { - "rebuild" = "doas nixos-rebuild switch --flake $HOME/nixos/ --impure"; - }; - }; programs.google-chrome.enable = true; programs.foot = { enable = true;