diff --git a/modules/home-manager/common/all-darwin.nix b/modules/home-manager/common/all-darwin.nix index 45067d7..e68d33a 100644 --- a/modules/home-manager/common/all-darwin.nix +++ b/modules/home-manager/common/all-darwin.nix @@ -17,6 +17,7 @@ oh-my-zsh.plugins = [ "macos" ]; shellAliases = { currentwifi = "networksetup -getairportnetwork en0 |cut -d ':' -f2- | cut -d ' ' -f2-"; + nixdiff = "cd ~/repos/dots && darwin-rebuild build --flake . && nvd diff /run/current-system result"; nixup = "darwin-rebuild switch --flake ~/repos/dots"; uwgconnect = "networksetup -setairportnetwork en0 SecureWest"; uwgforget = "networksetup -removepreferredwirelessnetwork en0 SecureWest"; diff --git a/modules/home-manager/common/all-linux.nix b/modules/home-manager/common/all-linux.nix index eeeb32c..04428b9 100644 --- a/modules/home-manager/common/all-linux.nix +++ b/modules/home-manager/common/all-linux.nix @@ -6,6 +6,8 @@ programs = { # Linux-specific aliases zsh.shellAliases = { + nixboot = "sudo nixos-rebuild boot --flake ~/repos/dots && echo 'Time to reboot!'"; + nixdiff = "cd ~/repos/dots && nixos-rebuild build --flake . && nvd diff /run/current-system result"; nixup = "sudo nixos-rebuild switch --flake ~/repos/dots"; uwgconnect = "nmcli dev wifi connect SecureWest password"; uwgforget = "nmcli connection delete SecureWest";