gitea file properly linted
This commit is contained in:
parent
8bc05d559c
commit
f57f64a880
@ -10,75 +10,77 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.my.servers.gitea = setup.mkOptions "gitea" "git" 9083;
|
options.my.servers.gitea = setup.mkOptions "gitea" "git" 9083;
|
||||||
config.services = {
|
config = {
|
||||||
sops.secrets = lib.mkIf cfg.enable { gitea.sopsFile = ../../secrets/env.yaml; };
|
sops.secrets = lib.mkIf cfg.enable { gitea.sopsFile = ../../secrets/env.yaml; };
|
||||||
gitea = lib.mkIf cfg.enable {
|
services = {
|
||||||
enable = true;
|
gitea = lib.mkIf cfg.enable {
|
||||||
domain = cfg.host;
|
enable = true;
|
||||||
rootUrl = cfg.url;
|
domain = cfg.host;
|
||||||
settings = {
|
rootUrl = cfg.url;
|
||||||
session.COOKIE_SECURE = true;
|
settings = {
|
||||||
server.HTTP_PORT = cfg.port;
|
session.COOKIE_SECURE = true;
|
||||||
mailer = {
|
server.HTTP_PORT = cfg.port;
|
||||||
ENABLED = true;
|
mailer = {
|
||||||
PROTOCOL = "sendmail";
|
ENABLED = true;
|
||||||
FROM = config.my.smtpemail;
|
PROTOCOL = "sendmail";
|
||||||
SENDMAIL_PATH = "${pkgs.msmtp}/bin/msmtp";
|
FROM = config.my.smtpemail;
|
||||||
|
SENDMAIL_PATH = "${pkgs.msmtp}/bin/msmtp";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
database = {
|
||||||
|
socket = config.my.postgresSocket;
|
||||||
|
type = "postgres";
|
||||||
|
createDatabase = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
database = {
|
gitea-actions-runner.instances.ryujinx = {
|
||||||
socket = config.my.postgresSocket;
|
enable = true;
|
||||||
type = "postgres";
|
url = cfg.url;
|
||||||
createDatabase = false;
|
name = "${config.networking.hostName}-ryujinx";
|
||||||
|
tokenFile = config.sops.secrets.gitea.path;
|
||||||
|
labels = [
|
||||||
|
"ubuntu-latest:host"
|
||||||
|
"ubuntu-20.04:host"
|
||||||
|
];
|
||||||
|
hostPackages =
|
||||||
|
let
|
||||||
|
python3 = pkgs.python3.withPackages (
|
||||||
|
ps:
|
||||||
|
builtins.attrValues {
|
||||||
|
inherit (ps)
|
||||||
|
pyyaml
|
||||||
|
lxml
|
||||||
|
;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
in
|
||||||
|
builtins.attrValues {
|
||||||
|
inherit python3;
|
||||||
|
inherit (pkgs)
|
||||||
|
bash
|
||||||
|
coreutils
|
||||||
|
curl
|
||||||
|
gawk
|
||||||
|
gitMinimal
|
||||||
|
gnused
|
||||||
|
nodejs
|
||||||
|
wget
|
||||||
|
gnutar
|
||||||
|
gzip
|
||||||
|
dotnet-sdk_8
|
||||||
|
openal
|
||||||
|
vulkan-loader
|
||||||
|
libGL
|
||||||
|
gtk3
|
||||||
|
llvm_15
|
||||||
|
rcodesign
|
||||||
|
gh
|
||||||
|
p7zip
|
||||||
|
;
|
||||||
|
inherit (pkgs.xorg) libX11;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverseFix cfg);
|
||||||
};
|
};
|
||||||
gitea-actions-runner.instances.ryujinx = {
|
|
||||||
enable = true;
|
|
||||||
url = cfg.url;
|
|
||||||
name = "${config.networking.hostName}-ryujinx";
|
|
||||||
tokenFile = config.sops.secrets.gitea.path;
|
|
||||||
labels = [
|
|
||||||
"ubuntu-latest:host"
|
|
||||||
"ubuntu-20.04:host"
|
|
||||||
];
|
|
||||||
hostPackages =
|
|
||||||
let
|
|
||||||
python3 = pkgs.python3.withPackages (
|
|
||||||
ps:
|
|
||||||
builtins.attrValues {
|
|
||||||
inherit (ps)
|
|
||||||
pyyaml
|
|
||||||
lxml
|
|
||||||
;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
in
|
|
||||||
builtins.attrValues {
|
|
||||||
inherit python3;
|
|
||||||
inherit (pkgs)
|
|
||||||
bash
|
|
||||||
coreutils
|
|
||||||
curl
|
|
||||||
gawk
|
|
||||||
gitMinimal
|
|
||||||
gnused
|
|
||||||
nodejs
|
|
||||||
wget
|
|
||||||
gnutar
|
|
||||||
gzip
|
|
||||||
dotnet-sdk_8
|
|
||||||
openal
|
|
||||||
vulkan-loader
|
|
||||||
libGL
|
|
||||||
gtk3
|
|
||||||
llvm_15
|
|
||||||
rcodesign
|
|
||||||
gh
|
|
||||||
p7zip
|
|
||||||
;
|
|
||||||
inherit (pkgs.xorg) libX11;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
nginx.virtualHosts."${cfg.host}" = lib.mkIf cfg.enableProxy (setup.proxyReverseFix cfg);
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user