From cf8b48f3d4a3baaba29fde70de0ff4d21360ccd5 Mon Sep 17 00:00:00 2001 From: josiah Date: Mon, 20 Feb 2023 18:24:39 -0600 Subject: [PATCH] Add Demiurge, exgod deploy blocks. I'm not really convinced I'm doing this the right way, but this method gives me rough feature parity with what I can do with Morph. --- nixos-configs/deploy-rs/flake.nix | 50 ++++++++++++++++++++++++++++++- 1 file changed, 49 insertions(+), 1 deletion(-) diff --git a/nixos-configs/deploy-rs/flake.nix b/nixos-configs/deploy-rs/flake.nix index b5aa42a..98837fd 100644 --- a/nixos-configs/deploy-rs/flake.nix +++ b/nixos-configs/deploy-rs/flake.nix @@ -16,6 +16,20 @@ ../common/default.nix ]; }; + nixosConfigurations.demiurge = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ../hosts/demiurge/configuration.nix + ../common/default.nix + ]; + }; + nixosConfigurations.exgod = nixpkgs.lib.nixosSystem { + system = "x86_64-linux"; + modules = [ + ../hosts/exgod/configuration.nix + ../common/default.nix + ]; + }; deploy.nodes.seraph = { hostname = "seraph"; @@ -33,7 +47,41 @@ path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.seraph; }; - }; + }; + deploy.nodes.demiurge = { + hostname = "demiurge"; + user = "root"; + sshUser = "alice"; + # magicRollback = false; + remoteBuild = false; + path = deploy-rs.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.demiurge; + + # This forces ssh to connect over IPv4. + sshOpts = [ "-4" ]; + + profiles.system = { + path = deploy-rs.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.demiurge; + }; + }; + deploy.nodes.exgod = { + hostname = "exgod"; + user = "root"; + sshUser = "alice"; + # magicRollback = false; + remoteBuild = false; + path = deploy-rs.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.exgod; + + # This forces ssh to connect over IPv4. + sshOpts = [ "-4" ]; + + profiles.system = { + path = deploy-rs.lib.x86_64-linux.activate.nixos + self.nixosConfigurations.exgod; + }; + }; # This is highly advised, and will prevent many possible mistakes checks =