infrastructure/flake.nix

24 lines
646 B
Nix
Raw Normal View History

2021-10-13 16:49:41 +02:00
{
description = "Delft Deployment";
inputs.deploy-rs.url = "github:serokell/deploy-rs";
outputs = { self, nixpkgs, deploy-rs }: {
nixosConfigurations.bastion = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [ ./hosts/bastion/configuration.nix ];
};
2021-10-13 18:17:45 +02:00
deploy.nodes.bastion = {
2021-10-13 16:49:41 +02:00
hostname = "localhost";
fastConnection = true;
profiles.system = {
user = "root";
path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.bastion;
};
};
2021-10-13 18:17:45 +02:00
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
2021-10-13 16:49:41 +02:00
};
}