add nb: nix build and ns: nix shell shell aliases

This commit is contained in:
Noa Aarts 2024-11-03 14:26:51 +01:00
parent a907db9e59
commit 9250237a77

View file

@ -1,4 +1,9 @@
{ lib, config, pkgs, ... }: {
lib,
config,
pkgs,
...
}:
let let
cfg = config.modules.apps.zsh; cfg = config.modules.apps.zsh;
in in
@ -20,10 +25,12 @@ in
ll = "lsd -l"; ll = "lsd -l";
lt = "lsd -l --tree"; lt = "lsd -l --tree";
update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos"; update = "nix flake update --commit-lock-file $HOME/nixos && sudo nixos-rebuild switch --flake $HOME/nixos";
nb = "nix build -L";
ns = "nix shell -L";
}; };
initExtra = '' initExtra = ''
[[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null [[ ! -r /home/noa/.opam/opam-init/init.zsh ]] || source /home/noa/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
''; '';
history = { history = {
path = "${config.xdg.dataHome}/zsh/history"; path = "${config.xdg.dataHome}/zsh/history";
size = 10000; size = 10000;