update flake and add nrun

This commit is contained in:
Noa Aarts 2024-03-02 13:14:38 +01:00
parent da7e12fba1
commit 17afe90641
2 changed files with 11 additions and 6 deletions

View file

@ -13,6 +13,11 @@
utest = "sudo nixos-rebuild test --flake $HOME/nixos#default";
update = "sudo nixos-rebuild switch --flake $HOME/nixos#default";
};
initExtra = ''
nrun() {
NIXPKGS_ALLOW_UNFREE=1 nix run --impure "nixpkgs#$1" | xargs hyprctl dispatch exec --
}
'';
history = {
path = "${config.xdg.dataHome}/zsh/history";
size = 10000;