mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
35 lines
818 B
Makefile
35 lines
818 B
Makefile
ROOT := /mnt
|
|
HOST := ni
|
|
|
|
.PHONY: install
|
|
install:
|
|
nixos-install --flake ".#${HOST}" --root ${ROOT}
|
|
|
|
.PHONY: switch
|
|
switch:
|
|
nixos-rebuild --flake ".#${HOST}" switch
|
|
|
|
.PHONY: test
|
|
test:
|
|
nixos-rebuild --flake ".#${HOST}" dry-activate
|
|
|
|
.PHONY: update
|
|
update:
|
|
git checkout -- flake.lock
|
|
nix flake update \
|
|
--commit-lock-file --commit-lockfile-summary "flake.lock: update inputs"
|
|
|
|
.PHONY: update_with_forked_inputs
|
|
update_with_forked_inputs:
|
|
nix flake lock \
|
|
--override-input guix-overlay git+file:///home/foo-dogsquared/library/projects/software/nix-overlay-guix/ \
|
|
--override-input dotfiles git+file:///home/foo-dogsquared/library/dotfiles/
|
|
|
|
.PHONY: docs-serve
|
|
docs-serve:
|
|
nix develop '.#docs' --impure -c hugo -s ./docs serve
|
|
|
|
.PHONY: docs-build
|
|
docs-build:
|
|
nix develop '.#docs' --impure -c hugo -s ./docs/
|