reformat and added vinix and nrs functions

This commit is contained in:
2026-07-15 17:47:26 +01:00
parent bbc74a9614
commit 9104f3b5af

View File

@@ -30,7 +30,11 @@
...
}: {
packages = {
zsh = inputs.wrappers.wrappers.zsh.wrap {
zsh = let
flakeLocation = builtins.getEnv "PWD";
in
assert flakeLocation != "";
inputs.wrappers.wrappers.zsh.wrap {
inherit pkgs;
runtimePkgs = [pkgs.carapace pkgs.fzf];
zshAliases = {
@@ -42,6 +46,8 @@
carapace = lib.getExe pkgs.carapace;
man = "man -P \"${lib.getExe pkgs.bat} -p\"";
nsh = "nix-shell -p";
nrs = "( cd ${flakeLocation} && sudo nixos-rebuild switch --impure --flake . )";
vinix = "nvim --cmd 'cd ${flakeLocation}'";
};
zshrc.content = ''
if (( ''${+terminfo[smkx]} )) && (( ''${+terminfo[rmkx]} )); then