CLI Improvements

This commit is contained in:
2026-01-22 16:41:08 -07:00
parent 5d0a48fab6
commit 088f986f61
6 changed files with 61 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
.PHONY: init install link unlink rebuild update purge edit gen-hardware help
.PHONY: init install link unlink rebuild update purge edit hw help
NIXOS_DIR := /etc/nixos
REPO_DIR := $(shell pwd)
@@ -14,7 +14,7 @@ help:
@echo "NixOS Config"
@echo ""
@echo " make init - first time setup"
@echo " make gen-hardware - generate hardware-configuration.nix"
@echo " make hw - generate hardware-configuration.nix"
@echo " make rebuild - rebuild nixos"
@echo " make update - upgrade + rebuild"
@echo " make purge - garbage collect"
@@ -23,7 +23,7 @@ help:
@echo " make edit - edit settings.nix"
init:
@$(MAKE) --no-print-directory gen-hardware
@$(MAKE) --no-print-directory hw
@$(MAKE) --no-print-directory link
@echo ""
@echo "done. run 'make rebuild' when ready"
@@ -60,7 +60,7 @@ purge:
check:
nix-instantiate '<nixpkgs/nixos>' -A system --dry-run
gen-hardware:
hw:
sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
edit: