nix/lib/deploy/default.nix
Daniel Flanagan 24146f35f8
All checks were successful
/ build-host (map[host:beefcake]) (push) Successful in 53s
/ build-host (map[host:dragon]) (push) Successful in 1m18s
/ build-host (map[host:flipflop]) (push) Successful in 1m10s
/ build-host (map[host:foxtrot]) (push) Successful in 1m18s
/ build-host (map[host:router]) (push) Successful in 46s
/ build-devshell (push) Successful in 23s
/ flake-check (push) Successful in 28m3s
feat: add upgrader
2025-03-20 17:15:48 -05:00

36 lines
731 B
Nix

{ deploy-rs, self, ... }:
let
deployer =
host: opts:
{
hostname = "${host}.hare-cod.ts.net";
fastConnection = true;
interactiveSudo = true;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.${host};
};
}
// opts;
in
{
nodes = {
beefcake = deployer "beefcake" {
remoteBuild = true;
};
dragon = deployer "dragon" {
remoteBuild = true;
};
htpc = deployer "htpc" { };
bigtower = deployer "bigtower" {
remoteBuild = true;
};
rascal = deployer "rascal" { };
router = (deployer "router") {
sshOpts = [
"-p"
"2201"
];
};
};
}