build: Makefile
This commit is contained in:
14
Makefile
14
Makefile
@@ -4,6 +4,10 @@ switch:
|
|||||||
@echo "Rebuilding NixOS..."
|
@echo "Rebuilding NixOS..."
|
||||||
@nh os switch .
|
@nh os switch .
|
||||||
|
|
||||||
|
switch-offline:
|
||||||
|
@echo "Rebuilding NixOS without net..."
|
||||||
|
@nh os switch . --no-net
|
||||||
|
|
||||||
boot:
|
boot:
|
||||||
@echo "Rebuilding NixOS..."
|
@echo "Rebuilding NixOS..."
|
||||||
@nh os boot .
|
@nh os boot .
|
||||||
@@ -20,14 +24,8 @@ update:
|
|||||||
@echo "Updating flakes..."
|
@echo "Updating flakes..."
|
||||||
@nix flake update
|
@nix flake update
|
||||||
|
|
||||||
history:
|
|
||||||
@nix profile history --profile /nix/var/nix/profiles/system
|
|
||||||
|
|
||||||
replpkgs:
|
|
||||||
@nix repl -f flake:nixpkgs
|
|
||||||
|
|
||||||
repl:
|
repl:
|
||||||
@nh os repl .
|
@nixos-rebuild repl --flake .
|
||||||
|
|
||||||
cleandry:
|
cleandry:
|
||||||
@echo "Listing all generations older than 15 days..."
|
@echo "Listing all generations older than 15 days..."
|
||||||
@@ -46,4 +44,4 @@ fmt:
|
|||||||
@echo "Formatting nix files..."
|
@echo "Formatting nix files..."
|
||||||
@nix fmt
|
@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
|
||||||
|
|||||||
Reference in New Issue
Block a user