nixos/Makefile
Evie Litherland-Smith 9b7f35ea3d Add server directive to Makefile
Builds server config, copies to server and deletes result after
2024-12-28 08:06:53 +00:00

17 lines
381 B
Makefile

.PHONY: default build server flathub
HOST := $(shell hostname)
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