add nr to rebuild nixos and darwin

This commit is contained in:
Noah Masur 2022-06-14 18:17:52 -04:00
parent c67d84fcd1
commit 708672b2e3
2 changed files with 14 additions and 0 deletions

View File

@ -37,6 +37,13 @@
xdg.configFile.hammerspoon = { source = ./hammerspoon; }; xdg.configFile.hammerspoon = { source = ./hammerspoon; };
programs.fish = {
shellAbbrs = {
nr =
"sudo darwin-rebuild switch --flake ${config.dotfilesPath}#macbook";
};
};
}; };
system.activationScripts.hammerspoon.text = '' system.activationScripts.hammerspoon.text = ''

View File

@ -16,6 +16,13 @@
}; };
programs.fish = {
shellAbbrs = {
nr = lib.mkIf pkgs.stdenv.isLinux
"doas nixos-rebuild switch --flake ${config.dotfilesPath}";
};
};
}; };
} }