mirror of
https://git.lgmrszd.xyz/Lgmrszd/nix-cfg.git
synced 2025-12-14 15:48:21 +01:00
vps1: move some settings into a separate file
This commit is contained in:
parent
8699da4a85
commit
9c820fa600
5 changed files with 24 additions and 9 deletions
|
|
@ -1,8 +1,9 @@
|
|||
# Big thanks to Pyrox for their config! https://git.pyrox.dev/pyrox/nix/src/branch/main/hosts/marvin/services/git.nix
|
||||
{ lib, pkgs, config, ... }:
|
||||
{ lib, pkgs, config, data, ... }:
|
||||
let
|
||||
rootDomain = "lgmrszd.xyz";
|
||||
domain = "git.${rootDomain}";
|
||||
inherit (data.services) rootDomain;
|
||||
domain = "${data.services.git.subdomain}.${rootDomain}";
|
||||
gitSSHPort = data.services.git.sshPort;
|
||||
|
||||
cfg = config.services.forgejo;
|
||||
srv = cfg.settings.server;
|
||||
|
|
@ -39,7 +40,7 @@ in
|
|||
ROOT_URL = "https://${srv.DOMAIN}/";
|
||||
HTTP_ADDR = "127.0.0.1";
|
||||
HTTP_PORT = 3001;
|
||||
SSH_PORT = 22631;
|
||||
SSH_PORT = gitSSHPort;
|
||||
};
|
||||
DEFAULT = {
|
||||
APP_NAME = "Lgmrszd's git";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue