Skip to content

Commit

Permalink
deployment attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
AronNovak committed Nov 24, 2023
1 parent 9b33774 commit 100bbf3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Empty file added Application/Migration/.gitkeep
Empty file.
30 changes: 28 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
systems.follows = "ihp/systems";
};

outputs = inputs@{ ihp, flake-parts, systems, ... }:
outputs = inputs@{ self, nixpkgs, ihp, flake-parts, systems, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {

systems = import systems;
Expand Down Expand Up @@ -35,5 +35,31 @@
};
};

# Adding the new NixOS configuration for "ihp-app"
flake.nixosConfigurations."ihp-app" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
modules = [
"${nixpkgs}/nixos/modules/virtualisation/amazon-image.nix"
ihp.nixosModules.appWithPostgres
({ ... }: {
security.acme.defaults.email = "[email protected]";

services.ihp = {
domain = "tpp-qa.gizra.site";
migrations = ./Application/Migration;
schema = ./Application/Schema.sql;
fixtures = ./Application/Fixtures.sql;
sessionSecret = "M$cmzMCEx7xfL-5_q6%9cpve_0BAd5BbDaOtzhv7";
};

swapDevices = [ { device = "/swapfile"; size = 8192; } ];

system.stateVersion = "23.05";
})
];
};


};
}
}

0 comments on commit 100bbf3

Please sign in to comment.