mirror of
https://github.com/hyprwm/hyprland-infra.git
synced 2025-05-13 05:40:39 +01:00
typhon: init module stub
This commit is contained in:
parent
0c8c7baadd
commit
7e7f939d3b
3 changed files with 38 additions and 0 deletions
|
@ -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
8
modules/nginx.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
# configure nginx
|
||||
services.nginx = {
|
||||
enable = true;
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
};
|
||||
}
|
28
modules/typhon.nix
Normal file
28
modules/typhon.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue