forked from Zynh0722/permafrost
preliminary forgejo config
This commit is contained in:
parent
2ef0974bde
commit
75e970e330
1 changed files with 21 additions and 0 deletions
21
modules/forgejo.nix
Normal file
21
modules/forgejo.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.permafrost.nyazoom;
|
||||
in
|
||||
{
|
||||
options.permafrost.nyazoom = {
|
||||
enable = lib.mkEnableOption "permafrost nixos module";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
permafrost.nginx.enable = lib.mkDefault true;
|
||||
services.nginx.virtualHosts."git.zynh.me" = {
|
||||
addSSL = true;
|
||||
serverName = "git.zynh.me";
|
||||
locations."/" = {
|
||||
proxyPass = "http://localhost:3032";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue