mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-11 02:32:37 +08:00
fix bash init
This commit is contained in:
parent
6c1e316172
commit
e967471ee3
2 changed files with 13 additions and 12 deletions
2
Makefile
2
Makefile
|
|
@ -8,7 +8,7 @@ all:
|
|||
|
||||
nixos:
|
||||
sudo nixos-rebuild switch -j auto
|
||||
systemctl restart --user emanote
|
||||
# systemctl restart --user emanote
|
||||
|
||||
# Not sure why this doesn't reliably work
|
||||
h0:
|
||||
|
|
|
|||
23
home.nix
23
home.nix
|
|
@ -12,6 +12,7 @@ rec {
|
|||
# inputs.nix-doom-emacs.hmModule;
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gnumake
|
||||
emanote
|
||||
|
||||
cachix
|
||||
|
|
@ -82,17 +83,17 @@ rec {
|
|||
ls = "l";
|
||||
#h = "himalaya";
|
||||
};
|
||||
sessionVariables = { };
|
||||
bashrcExtra = ''
|
||||
. ~/.nix-profile/etc/profile.d/nix.sh
|
||||
export PATH=$HOME/.nix-profile/bin:$PATH
|
||||
|
||||
# https://github.com/nix-community/home-manager/issues/1871#issuecomment-852739277
|
||||
for completion_script in ~/.nix-profile/share/bash-completion/completions/*
|
||||
do
|
||||
source "$completion_script"
|
||||
done
|
||||
'';
|
||||
sessionVariables = {};
|
||||
# XXX: These are needed only on non-NixOS Linux (on NixOS, they are broken)
|
||||
#bashrcExtra = ''
|
||||
# . ~/.nix-profile/etc/profile.d/nix.sh
|
||||
# export PATH=$HOME/.nix-profile/bin:$PATH
|
||||
# # https://github.com/nix-community/home-manager/issues/1871#issuecomment-852739277
|
||||
# for completion_script in ~/.nix-profile/share/bash-completion/completions/*
|
||||
# do
|
||||
# source "$completion_script"
|
||||
# done
|
||||
#'';
|
||||
};
|
||||
|
||||
starship =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue