minimal: add host
[julm/julm-nix.git] / hosts / courge / Makefile
index 9f2d2e9ded2dc169a97e389046956b52e8045f6a..c85b7234cfc4e6fa39d578d4cdc6c295281ef4db 100644 (file)
@@ -108,7 +108,7 @@ install:
          mount -v -o zfsutil,X-mount.mkdir -t zfs $(zpool)/root/var $(targetRoot)/var; \
          findmnt \
        "'
-       nix copy --to "ssh://$(TARGET)?$(targetStore)" ../courge.root
+       nix copy --to "ssh://$(TARGET)?$(targetStore)" ../$(hostName).root
        gpg -d credential.secret.gpg | \
        ssh $(TARGET) sh -xec '" \
          nix-env --store $(targetRoot) -p $(targetRoot)/nix/var/nix/profiles/system \
@@ -121,6 +121,6 @@ install:
          set -eux; \
          mount --rbind --mkdir / $(targetRoot); \
          mount --make-rslave $(targetRoot); \
-         NIXOS_INSTALL_BOOTLOADER=1 $(shell realpath -e ../courge.root)/bin/switch-to-configuration boot; \
+         NIXOS_INSTALL_BOOTLOADER=1 $(shell realpath -e ../$(hostName).root)/bin/switch-to-configuration boot; \
          umount -R $(targetRoot) && rmdir $(targetRoot) \
        "'