diff --git a/Makefile b/Makefile index cac4d3b..85da90a 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all +.PHONY: all deploy all: guix-installer-vm.img @@ -55,3 +55,5 @@ guix-installer-vm.img: $(IMAGE_SOURCE) --image-size=4G guix-installer-vm-system.scm` \ $@ +deploy: + guix deploy -L . guix-installer-vm-machine.scm diff --git a/guix-installer-vm-machine.scm b/guix-installer-vm-machine.scm new file mode 100644 index 0000000..25fc7e5 --- /dev/null +++ b/guix-installer-vm-machine.scm @@ -0,0 +1,35 @@ +;;; Copyright © Guix documentation authors +;;; Copyright © 2023 Denis 'GNUtoo' Carikli +;;; +;;; This file is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; This file is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with this file. If not, see . + +(use-modules (gnu) + (gnu machine) + (gnu machine ssh)) +(list + (machine + (operating-system + (@ (guix-installer-vm-system) guix-installer-vm-operating-system)) + (environment managed-host-environment-type) + (configuration + (machine-ssh-configuration + (authorize? #t) + (build-locally? #f) + (host-key + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJGgswfvxxErFStqBGY81N0uuLndjA5l9bGd4DGlcK9F") + (host-name "2001:910:1021::118") + (identity "./id_ed25519") + (port 222) + (system "x86_64-linux") + (user "root")))))