host/magenta: use new configs instead of deprecated
This commit is contained in:
parent
dcf1caac15
commit
a1632c8dba
2 changed files with 6 additions and 5 deletions
|
@ -21,8 +21,8 @@ in
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
boot.kernelPackages = pkgs.linuxPackages_6_1;
|
||||||
|
boot.tmp.cleanOnBoot = true;
|
||||||
|
|
||||||
boot.cleanTmpDir = true;
|
|
||||||
zramSwap.enable = true;
|
zramSwap.enable = true;
|
||||||
|
|
||||||
networking.hostName = "magenta";
|
networking.hostName = "magenta";
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
hostname = "git.pleshevski.ru";
|
hostname = "git.pleshevski.ru";
|
||||||
|
httpPort = 9901;
|
||||||
|
|
||||||
giteaCfg = config.services.gitea;
|
giteaCfg = config.services.gitea;
|
||||||
|
|
||||||
|
@ -16,10 +17,7 @@ in
|
||||||
|
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
httpPort = 9901;
|
|
||||||
package = pkgs.unstable.gitea;
|
package = pkgs.unstable.gitea;
|
||||||
domain = hostname;
|
|
||||||
rootUrl = "https://${hostname}";
|
|
||||||
appName = "Pleshevskiy's Gitea";
|
appName = "Pleshevskiy's Gitea";
|
||||||
mailerPasswordFile = config.age.secrets.gitea-smtp-passfile.path;
|
mailerPasswordFile = config.age.secrets.gitea-smtp-passfile.path;
|
||||||
database = {
|
database = {
|
||||||
|
@ -38,6 +36,9 @@ in
|
||||||
LOG_SQL = false;
|
LOG_SQL = false;
|
||||||
};
|
};
|
||||||
server = {
|
server = {
|
||||||
|
DOMAIN = hostname;
|
||||||
|
HTTP_PORT = httpPort;
|
||||||
|
ROOT_URL = "https://${hostname}";
|
||||||
LANDING_PAGE = "explore";
|
LANDING_PAGE = "explore";
|
||||||
};
|
};
|
||||||
service = {
|
service = {
|
||||||
|
@ -119,7 +120,7 @@ in
|
||||||
};
|
};
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
loadBalancer.servers = [
|
loadBalancer.servers = [
|
||||||
{ url = "http://host.docker.internal:${toString giteaCfg.httpPort}"; }
|
{ url = "http://host.docker.internal:${toString httpPort}"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue