mirror of
https://github.com/zephrynis/nix-flake.git
synced 2026-02-18 20:21:53 +00:00
Add update-laptop shell alias
Introduced a new shell alias 'update-laptop' to automate updating the laptop's Nix flake configuration and rebuilding the system.
This commit is contained in:
@@ -90,6 +90,7 @@
|
|||||||
shellAliases = {
|
shellAliases = {
|
||||||
ll = "ls -la";
|
ll = "ls -la";
|
||||||
update = "sudo nixos-rebuild switch --flake .#my-machine";
|
update = "sudo nixos-rebuild switch --flake .#my-machine";
|
||||||
|
update-laptop = "cd /home/zeph/nix-flake && git reset --hard origin/main && git pull && nix flake update && sudo nixos-rebuild switch --flake .#laptop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user