mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 02:19:41 +00:00
Add rebuild alias
This commit is contained in:
parent
b07310f7f4
commit
bd37750749
|
@ -1,6 +1,6 @@
|
||||||
{ config, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
username = config.myOptions.system.username;
|
nr = "${pkgs.nixos-rebuild}/bin/nixos-rebuild";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
programs.zsh.shellAliases = {
|
programs.zsh.shellAliases = {
|
||||||
|
@ -30,6 +30,9 @@ in
|
||||||
rrf = "rm -rf";
|
rrf = "rm -rf";
|
||||||
vimdiff = "nvim -d";
|
vimdiff = "nvim -d";
|
||||||
|
|
||||||
|
# Nix aliases
|
||||||
|
rebuild = "nix-store --verify; pushd ~/dots; ${nr} switch --flake .#$1 --use-remote-sudo ; popd";
|
||||||
|
|
||||||
# Expand aliases from sudo
|
# Expand aliases from sudo
|
||||||
sudo = "sudo ";
|
sudo = "sudo ";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue