mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 02:25:12 -05:00
feat: forgejo test
This commit is contained in:
parent
c34f5b0911
commit
5acbf5a77f
1 changed files with 41 additions and 39 deletions
|
@ -3,13 +3,12 @@
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}:
|
||||||
inherit
|
let
|
||||||
(flake.config.machines.devices)
|
inherit (flake.config.machines.devices)
|
||||||
server
|
server
|
||||||
;
|
;
|
||||||
inherit
|
inherit (flake.config.services.instances)
|
||||||
(flake.config.services.instances)
|
|
||||||
caddy
|
caddy
|
||||||
peertube
|
peertube
|
||||||
web
|
web
|
||||||
|
@ -17,7 +16,8 @@
|
||||||
service = peertube;
|
service = peertube;
|
||||||
localhost = web.localhost.address0;
|
localhost = web.localhost.address0;
|
||||||
host = "${service.subdomain}.${web.domains.url3}";
|
host = "${service.subdomain}.${web.domains.url3}";
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
services = {
|
services = {
|
||||||
peertube = {
|
peertube = {
|
||||||
configureNginx = false;
|
configureNginx = false;
|
||||||
|
@ -29,18 +29,18 @@ in {
|
||||||
localDomain = host;
|
localDomain = host;
|
||||||
serviceEnvironmentFile = config.sops.secrets."${service.name}-root".path;
|
serviceEnvironmentFile = config.sops.secrets."${service.name}-root".path;
|
||||||
user = service.name;
|
user = service.name;
|
||||||
plugins = {
|
# plugins = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
plugins = builtins.attrValues {
|
# plugins = builtins.attrValues {
|
||||||
inherit
|
# inherit
|
||||||
(pkgs)
|
# (pkgs)
|
||||||
peertube-plugin-livechat
|
# peertube-plugin-livechat
|
||||||
peertube-plugin-matomo
|
# peertube-plugin-matomo
|
||||||
peertube-plugin-transcoding-custom-quality
|
# peertube-plugin-transcoding-custom-quality
|
||||||
peertube-theme-dark
|
# peertube-theme-dark
|
||||||
;
|
# ;
|
||||||
};
|
# };
|
||||||
};
|
# };
|
||||||
|
|
||||||
secrets = {
|
secrets = {
|
||||||
secretsFile = config.sops.secrets."${service.name}-secret".path;
|
secretsFile = config.sops.secrets."${service.name}-secret".path;
|
||||||
|
@ -91,13 +91,15 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = let
|
sops =
|
||||||
|
let
|
||||||
sopsPath = secret: {
|
sopsPath = secret: {
|
||||||
path = "${service.sops.path0}/${service.name}-${secret}-pass";
|
path = "${service.sops.path0}/${service.name}-${secret}-pass";
|
||||||
owner = service.name;
|
owner = service.name;
|
||||||
mode = "600";
|
mode = "600";
|
||||||
};
|
};
|
||||||
in {
|
in
|
||||||
|
{
|
||||||
secrets = builtins.listToAttrs (
|
secrets = builtins.listToAttrs (
|
||||||
map
|
map
|
||||||
(secret: {
|
(secret: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue