chore: add apply target to Makefile for "just applying" changes
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: all fmt fmt-nix fmt-shell lint lint-shell check clean update gc
|
||||
.PHONY: all fmt fmt-nix fmt-shell lint lint-shell check clean apply update gc
|
||||
export NIX_PAGER=
|
||||
|
||||
all: fmt lint
|
||||
@@ -27,6 +27,10 @@ check:
|
||||
clean:
|
||||
rm -rf .direnv result
|
||||
|
||||
# Appliquer la config sans mise à jour ni nettoyage
|
||||
apply:
|
||||
sudo nixos-rebuild switch
|
||||
|
||||
# Mise à jour NixOS + home-manager + garbage collect
|
||||
update:
|
||||
sudo nixos-rebuild switch --upgrade-all
|
||||
|
||||
Reference in New Issue
Block a user