Add rebuild alias

This commit is contained in:
ItsDrike 2024-04-13 00:28:25 +02:00
parent b07310f7f4
commit bd37750749
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -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 ";
};