rpi4: configure gitea
This commit is contained in:
parent
e3f9f20d71
commit
1f9a548734
52
hosts/rpi4/gitea.nix
Normal file
52
hosts/rpi4/gitea.nix
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.services.gitea;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
config = {
|
||||||
|
services.gitea = {
|
||||||
|
enable = true;
|
||||||
|
lfs.enable = true;
|
||||||
|
settings = {
|
||||||
|
repository = {
|
||||||
|
ENABLE_PUSH_CREATE_USER = true;
|
||||||
|
ENABLE_PUSH_CREATE_ORG = true;
|
||||||
|
DEFAULT_PUSH_CREATE_PRIVATE = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
server = {
|
||||||
|
ROOT_URL = "https://gitea.protogen.io/";
|
||||||
|
LANDING_PAGE = "explore";
|
||||||
|
OFFLINE_MODE = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
service.DISABLE_REGISTRATION = true;
|
||||||
|
|
||||||
|
session = {
|
||||||
|
COOKIE_NAME = "session";
|
||||||
|
COOKIE_SECURE = false;
|
||||||
|
PROVIDER = "file";
|
||||||
|
};
|
||||||
|
# TODO package themes
|
||||||
|
ui = {
|
||||||
|
DEFAULT_THEME = "catppuccin-mocha-pink";
|
||||||
|
THEMES = let
|
||||||
|
ctpAttrs = {
|
||||||
|
flavor = [ "latte" "frappe" "macchiato" "mocha" ];
|
||||||
|
accent = [ "rosewater" "flamingo" "pink" "mauve"
|
||||||
|
"red" "maroon" "peach" "yellow" "green" "teal"
|
||||||
|
"sky" "sapphire" "blue" ];
|
||||||
|
};
|
||||||
|
ctpThemes = lib.mapCartesianProduct
|
||||||
|
( { flavor, accent }: "catppuccin-${flavor}-${accent}" )
|
||||||
|
ctpAttrs;
|
||||||
|
in lib.concatStringsSep "," ([
|
||||||
|
"gitea"
|
||||||
|
"arc-green"
|
||||||
|
"auto"
|
||||||
|
] ++ ctpThemes);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -1,5 +1,8 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
imports = [
|
||||||
|
./gitea.nix
|
||||||
|
];
|
||||||
config = {
|
config = {
|
||||||
|
|
||||||
age.secrets.cloudflaredns = {
|
age.secrets.cloudflaredns = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user