From 9b7f35ea3d90f9239b273670ad17a4477626e413 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 28 Dec 2024 08:06:53 +0000 Subject: [PATCH] Add server directive to Makefile Builds server config, copies to server and deletes result after --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3711be3f..3255099d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: default build flathub +.PHONY: default build server flathub HOST := $(shell hostname) @@ -7,5 +7,10 @@ default: build build: nix build --no-link --keep-going .#nixosConfigurations.$(HOST).config.system.build.toplevel +server: + nixos-rebuild build --flake .#Legion + nix copy ./result --to ssh://legion + rm ./result + flathub: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo