Hi all
Im experimenting on making a script to echo my personal aliases into $HOME
and /root/ .bashrc
and then execute source $HOME./bashrc
to initiate my aliases?
Or, is it possible to add a snippet into the configuration to do this?
Example:
.users.users.root = { shell = pkgs.mkShell { buildInputs = [ pkgs.bashInteractive ]; shellHook = '' echo "Setting up root shell environment" echo "alias tolga='sudo /home/tolga/scripts/MYTOOLS/scripts/GENERATION-TRIMMER/TrimmGenerations.sh'" >> $HOME/.profile ''; }; };
When i run the rebuild switch i get the following error:
sudo nixos-rebuild switch
building Nix...
building the system configuration...
error: /nix/store/87fvbizwrib5j4zp48ygv2yv9j29ksbw-nix-shell is not a shell package
(use '--show-trace' to show detailed location information)