nixos-config/Makefile

38 lines
848 B
Makefile
Raw Permalink Normal View History

2021-11-30 01:03:05 +00:00
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
2021-12-02 14:02:29 +00:00
.PHONY: update
2022-07-09 03:03:02 +00:00
update:
2022-08-22 13:34:43 +00:00
git checkout -- flake.lock
2024-01-20 03:29:06 +00:00
nix flake update --commit-lock-file
.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/
2023-09-28 10:29:51 +00:00
.PHONY: deploy
deploy:
nix develop --impure -c deploy '.#nixos-${HOST}' --skip-checks