mirror of
https://github.com/Superredstone/nixos.git
synced 2026-06-17 15:24:39 +02:00
Added upgrade command to make
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
HOSTNAME ?= $(hostname)
|
||||
|
||||
all:
|
||||
echo "No command provided"
|
||||
@echo "No command provided"
|
||||
|
||||
switch:
|
||||
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
|
||||
@@ -9,6 +9,10 @@ switch:
|
||||
test:
|
||||
nixos-rebuild test --flake ".#${HOSTNAME}" --use-remote-sudo
|
||||
|
||||
upgrade:
|
||||
sudo nix flake update
|
||||
nixos-rebuild switch --flake ".#${HOSTNAME}" --use-remote-sudo
|
||||
|
||||
clean:
|
||||
sudo nix-collect-garbage -d
|
||||
sudo nix-store --optimise
|
||||
|
||||
Reference in New Issue
Block a user