mirror of
https://github.com/Superredstone/nixos.git
synced 2026-03-07 20:28:08 +01:00
Added upgrade command to make
This commit is contained in:
6
Makefile
6
Makefile
@@ -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