effects: deploy VEGAS
This commit is contained in:
parent
d32d77b508
commit
0157d85876
1 changed files with 13 additions and 0 deletions
13
flake.nix
13
flake.nix
|
@ -117,6 +117,19 @@
|
||||||
'';
|
'';
|
||||||
ssh.destination = "root@prophet.node.privatevoid.net";
|
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";
|
||||||
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue