mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Move Synapse on hcloud and deploy it with Terraform + NixOs
This commit is contained in:
parent
8d543677c9
commit
c76ade9c29
14 changed files with 396 additions and 37 deletions
27
flake.nix
Normal file
27
flake.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
|
||||
inputs = with pkgs; [
|
||||
terraform_0_14
|
||||
sops
|
||||
];
|
||||
in {
|
||||
devShell.x86_64-linux = pkgs.mkShell {
|
||||
buildInputs = inputs;
|
||||
};
|
||||
|
||||
nixosConfigurations.db1 = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ { imports = [ ./db1.nix ]; } ];
|
||||
};
|
||||
|
||||
nixosConfigurations.backend1 = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ { imports = [ ./backend1.nix ]; } ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue