nix shell features for flake, remove channels

This commit is contained in:
Noah Masur
2022-07-06 15:50:10 -04:00
parent df3e8e60d7
commit 8f5522c2c9
8 changed files with 74 additions and 49 deletions

View File

@ -16,25 +16,6 @@
};
programs.fish = {
shellAbbrs = {
nr = "rebuild-nixos";
nro = "rebuild-nixos offline";
};
functions = {
rebuild-nixos = {
body = ''
if test "$argv[1]" = "offline"
set option "--option substitute false"
end
git -C ${config.dotfilesPath} add --all
commandline -r "doas nixos-rebuild switch $option --flake ${config.dotfilesPath}"
commandline --function execute
'';
};
};
};
};
}