typhon: init module stub

This commit is contained in:
Mihai Fufezan 2024-03-24 17:26:10 +02:00 committed by NotAShelf
parent 0c8c7baadd
commit 7e7f939d3b
3 changed files with 38 additions and 0 deletions

View file

@ -5,6 +5,8 @@
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
agenix.url = "github:ryantm/agenix";
typhon.url = "github:typhon-ci/typhon";
};
outputs = {

8
modules/nginx.nix Normal file
View file

@ -0,0 +1,8 @@
{
# configure nginx
services.nginx = {
enable = true;
forceSSL = true;
enableACME = true;
};
}

28
modules/typhon.nix Normal file
View file

@ -0,0 +1,28 @@
{
config,
self,
...
}: {
# age.secrets.typhon-password = {
# file = "${self}/secrets/typhon-password.age";
# owner = "typhon";
# mode = "400";
# };
# enable Typhon
services.typhon = {
enable = true;
# path to the argon2id hash of the admin password
# $ SALT=$(cat /dev/urandom | head -c 16 | base64)
# $ echo -n password | argon2 "$SALT" -id -e > /etc/secrets/password.txt
# hashedPasswordFile = config.age.secrets.typhon-password.path;
};
services.nginx.virtualHosts."typhon.hyprland.org" = {
locations."/" = {
proxyPass = "http://localhost:3000";
recommendedProxySettings = true;
};
};
}