authorgravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2024-10-05 14:47:09-07:00
committergravatar for nmarks413@gmail.comNatalie Marks <nmarks413@gmail.com> 2024-10-05 14:47:09-07:00
logf926d51b11a7017dd1746607cd1f77ee7bc8bae0
tree9a362971307da7bf5dc0ceb65d7abdff6454e27e
parent2f8594d6edaf69dccd88990f211395c76da10123

updates


2 files changed, 12 insertions(+), 5 deletions(-)

hosts/laptop/configuration.nix+10
......@@ -40,6 +40,16 @@
4040 zsh.enable = true; # default shell on catalina
4141 };
4242
43 programs.zsh = {
44 interactiveShellInit = ''
45 if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
46 then
47 shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
48 exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
49 fi
50 '';
51 };
52
4353 # Used for backwards compatibility, please read the changelog before changing.
4454 # $ darwin-rebuild changelog
4555 system.stateVersion = 4;
hosts/laptop/home.nix+2-5
......@@ -32,6 +32,7 @@
3232
3333 home.packages = with pkgs; [
3434 # ghostty.packages.aarch64-darwin.default
35 wireguard-tools
3536 pyright
3637 ruff
3738 python312Packages.jedi-language-server
......@@ -84,6 +85,7 @@
8485 ollama
8586 sl
8687 #LSP + formatters/linters
88 texlivePackages.chktex
8789 lua-language-server
8890 nil
8991 alejandra
......@@ -127,12 +129,7 @@
127129 }
128130 ];
129131 shellAliases = {
130 hm-update = "git add home.nix ; git commit -m 'updated home-manager config'; git push origin main; home-manager switch --flake ~/.dotfiles/#nmarks";
131 sys-update = "git add configuration.nix ; git commit -m 'updated system config'; git push origin main; sudo nixos-rebuild switch --flake ~/.dotfiles/#nmarks";
132 full-update = "sys-update; hm-update";
133 reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
134132 };
135 shellInit = "source $HOME/.nix-profile/share/asdf-vm/asdf.fish ";
136133 };
137134
138135 programs.hyfetch = {