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