effects: deploy VEGAS

This commit is contained in:
Max Headroom 2022-05-25 00:38:19 +02:00
parent d32d77b508
commit 0157d85876

View file

@ -117,6 +117,19 @@
'';
ssh.destination = "root@prophet.node.privatevoid.net";
});
deploy-VEGAS = effects.runIf (branch == "hci-improvements") (effects.runNixOS {
requiredSystemFeatures = [ "hci-deploy-agent-nixos" ];
config = self.nixosConfigurations.VEGAS.config // { outPath = "wtfwtfwtfwtfwtfwtf"; };
secretsMap.ssh = "deploy-ssh";
userSetupScript = ''
writeSSHKey ssh
cat >>~/.ssh/known_hosts <<EOF
vegas.backbone.privatevoid.net ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICz2nGA+Y4OxhMKsV6vKIns3hOoBkK557712h7FfWXcE
EOF
'';
ssh.destination = "root@vegas.backbone.privatevoid.net";
});
};
};
}