diff options
author | Emile <git@emile.space> | 2024-12-03 21:53:22 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2024-12-03 21:53:22 +0100 |
commit | 9d1416227f07479bd5bbd5525a93b3d899ccef40 (patch) | |
tree | c92c646064edf2c1740d0d80ff8d486da4dabf4f | |
parent | 3729321c96329e3cef8c0a69d87ebef5dbabc47b (diff) |
(Makefile) init
-rw-r--r-- | Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..45924d9 --- /dev/null +++ b/Makefile @@ -0,0 +1,39 @@ +HOSTNAME=corrino + +.PHONY: help + +help: + @echo "build - build toplevel into `./result`" + @echo "update - updates and commit changes" + @echo "deploy - deploys to the server" + @echo "check - run local checks" + @echo "dry-activate - build and show different" + +corrino: + deploy .#corrino --skip-checks -- --show-trace -L + +build: + nix run nixpkgs#nix-output-monitor build .#nixosConfigurations.corrino.config.system.build.toplevel + +update: + nix flake update --commit-lock-file + +switch-caladan: + nix run https://github.com/LnL7/nix-darwin/archive/master.tar.gz -- switch --flake .#caladan + +build-corrino: + nix run nixpkgs#nix-output-monitor build .#nixosConfigurations.${HOSTNAME}.config.system.build.toplevel + +deploy: build + nix run -- nixpkgs#nixos-rebuild switch \ + --fast \ + --build-host root@${HOSTNAME} \ + --target-host root@${HOSTNAME} \ + --flake ".#corrino" + +check: + nix flake check + +dry-activate: + nix run -- nixpkgs#nixos-rebuild dry-activate --target-host root@${HOSTNAME} --flake ".#corrino" + |