initial commit
This commit is contained in:
commit
4014d5e658
30 changed files with 911 additions and 0 deletions
21
Makefile
Normal file
21
Makefile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
IP ?=
|
||||
HOST ?=
|
||||
deploy:
|
||||
# push flake config to a remote server
|
||||
ifeq ($(IP),)
|
||||
$(error IP not set)
|
||||
endif
|
||||
ifeq ($(HOST),)
|
||||
$(error HOST not set)
|
||||
endif
|
||||
rsync -azr ./ crown@$(IP):~/flake-config
|
||||
ssh crown@$(IP) "sudo nixos-rebuild switch --flake ~/flake-config#$(HOST)"
|
||||
|
||||
sops:
|
||||
# update sops keys
|
||||
sops updatekeys secrets.yaml
|
||||
|
||||
.DEFAULT_GOAL := default
|
||||
.PHONY: default deploy sops
|
||||
default:
|
||||
# noop
|
||||
Loading…
Add table
Add a link
Reference in a new issue