nichts/modules/home-manager/bash.nix

18 lines
598 B
Nix

{ ... }:
{
programs.bash = {
enable = true;
initExtra = ''
xset r rate 200 60
nxfnd () { [ $# -eq 1 ] || { echo "Expecting exactly one argument"; return 1; }; nix-locate --type x --minimal --whole-name "/$1"; }
'';
shellAliases = {
rb = "sudo nixos-rebuild switch --flake /etc/nixos#fw";
nx = "vim ~/nixos-config/hosts/fw/configuration.nix";
hm = "vim ~/nixos-config/hosts/fw/home.nix";
bsh = "vim ~/nixos-config/modules/home-manager/bash.nix";
nxfmt = "find . -name '*.nix' -print0 | xargs -r0 nix run nixpkgs#nixfmt --";
};
};
}