build: Makefile

This commit is contained in:
2025-12-07 16:34:21 +08:00
parent 8d7a4aed01
commit 17c5344666

View File

@@ -4,6 +4,10 @@ switch:
@echo "Rebuilding NixOS..."
@nh os switch .
switch-offline:
@echo "Rebuilding NixOS without net..."
@nh os switch . --no-net
boot:
@echo "Rebuilding NixOS..."
@nh os boot .
@@ -20,14 +24,8 @@ update:
@echo "Updating flakes..."
@nix flake update
history:
@nix profile history --profile /nix/var/nix/profiles/system
replpkgs:
@nix repl -f flake:nixpkgs
repl:
@nh os repl .
@nixos-rebuild repl --flake .
cleandry:
@echo "Listing all generations older than 15 days..."
@@ -46,4 +44,4 @@ fmt:
@echo "Formatting nix files..."
@nix fmt
.PHONY: os home news update history repl clean gc fmt
.PHONY: all switch switch-offline boot test vm update repl cleandry clean gc fmt