Oops forgot this
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,4 +1,4 @@
|
||||
.PHONY: init install link unlink rebuild update purge edit help
|
||||
.PHONY: init install link unlink rebuild update purge edit gen-hardware help
|
||||
|
||||
NIXOS_DIR := /etc/nixos
|
||||
REPO_DIR := $(shell pwd)
|
||||
@@ -14,6 +14,7 @@ help:
|
||||
@echo "NixOS Config"
|
||||
@echo ""
|
||||
@echo " make init - first time setup"
|
||||
@echo " make gen-hardware - generate hardware-configuration.nix"
|
||||
@echo " make rebuild - rebuild nixos"
|
||||
@echo " make update - upgrade + rebuild"
|
||||
@echo " make purge - garbage collect"
|
||||
@@ -22,7 +23,7 @@ help:
|
||||
@echo " make edit - edit settings.nix"
|
||||
|
||||
init:
|
||||
@./scripts/init.sh
|
||||
@$(MAKE) --no-print-directory gen-hardware
|
||||
@$(MAKE) --no-print-directory link
|
||||
@echo ""
|
||||
@echo "done. run 'make rebuild' when ready"
|
||||
@@ -59,5 +60,8 @@ purge:
|
||||
check:
|
||||
nix-instantiate '<nixpkgs/nixos>' -A system --dry-run
|
||||
|
||||
gen-hardware:
|
||||
sudo nixos-generate-config --show-hardware-config > hardware-configuration.nix
|
||||
|
||||
edit:
|
||||
@$${EDITOR:-nano} $(SETTINGS)
|
||||
|
||||
Reference in New Issue
Block a user