forgejo test and some sleep updates for the laptops
This commit is contained in:
parent
fa325222ea
commit
0a44506872
4 changed files with 53 additions and 1 deletions
|
@ -31,6 +31,7 @@
|
|||
./configuration.nix
|
||||
./hardware-configuration.nix
|
||||
(import ./containers.nix { inherit common; })
|
||||
./forgejo.nix
|
||||
(
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
|
|
49
hosts/lio/forgejo.nix
Normal file
49
hosts/lio/forgejo.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
||||
in
|
||||
{
|
||||
options.services.forgejo = {
|
||||
|
||||
};
|
||||
|
||||
config = {
|
||||
services.forgejo = {
|
||||
enable = true;
|
||||
settings = {
|
||||
DEFAULT = {
|
||||
APP_NAME = "appname";
|
||||
APP_SLOGAN = "slogan";
|
||||
};
|
||||
server = {
|
||||
PROTOCOL = "http";
|
||||
# DOMAIN = "git.joshuabell.xyz";
|
||||
HTTP_ADDR = "0.0.0.0";
|
||||
HTTP_PORT = 3032;
|
||||
|
||||
LANDING_PAGE = "explore";
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = "true";
|
||||
ENABLE_BASIC_AUTHENTICATION = "false";
|
||||
# explore = {
|
||||
# DISABLE_USERS_PAGE = "true";
|
||||
# };
|
||||
};
|
||||
repository = {
|
||||
DISABLE_STARS = "true";
|
||||
DEFAULT_PRIVATE = "private";
|
||||
};
|
||||
admin = {
|
||||
|
||||
DISABLE_REGULAR_ORG_CREATION = "true";
|
||||
USER_DISABLED_FEATURES = "deletion";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue