infrastructure/deploy/system-vm/default.nix
Fabian Hauser 2b1266f249
All checks were successful
CI / build (push) Successful in 1m43s
WIP: Create script to deploy in CI
2025-04-12 20:39:55 +03:00

27 lines
568 B
Nix

{
deployPkgs,
pkgs,
self,
...
}:
let
inherit (pkgs.lib) pipe filterAttrs mapAttrs;
in
{
nodes = pipe self.nixosConfigurations [
(filterAttrs (_n: v: v.config.services.qemuGuest.enable))
(mapAttrs (
host: config: {
hostname = "${host}.backplane.net.qo.is";
profiles.system-vm = {
sshUser = "root";
user = "root";
activationTimeout = 300;
confirmTimeout = 60;
remoteBuild = true;
path = deployPkgs.deploy-rs.lib.activate.nixos config;
};
}
))
];
}