chore: add apply target to Makefile for "just applying" changes

This commit is contained in:
Pierre Martin
2026-04-17 10:35:31 +02:00
parent 7429aa3bee
commit a5db59964d

View File

@@ -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