diff --git a/Makefile b/Makefile index 9a3078f..01241a6 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,17 @@ SHELL := $(shell which bash) .SILENT: +.PHONY: sync +sync: + sudo rsync -a --exclude='hardware-configuration.nix' nixos/ /etc/nixos/ + sudo nixos-rebuild switch + + +.PHONY: sync-dry-run +sync-dry-run: + sudo rsync -a --dry-run --verbose --exclude='hardware-configuration.nix' nixos/ /etc/nixos/ + + .PHONY: add-pre-commit-hook add-pre-commit-hook: printf '#!/bin/sh\nmake test\n' > .git/hooks/pre-commit