forgejo test and some sleep updates for the laptops

This commit is contained in:
RingOfStorms (Joshua Bell) 2025-04-25 18:41:12 -05:00
parent fa325222ea
commit 0a44506872
4 changed files with 53 additions and 1 deletions

View file

@ -43,6 +43,7 @@
boot.systemd.enable = true; boot.systemd.enable = true;
desktopEnvironment.gnome.enable = true; desktopEnvironment.gnome.enable = true;
secrets.enable = true; secrets.enable = true;
general.enableSleep = true;
programs = { programs = {
qFlipper.enable = true; qFlipper.enable = true;
rustDev.enable = true; rustDev.enable = true;

View file

@ -31,6 +31,7 @@
./configuration.nix ./configuration.nix
./hardware-configuration.nix ./hardware-configuration.nix
(import ./containers.nix { inherit common; }) (import ./containers.nix { inherit common; })
./forgejo.nix
( (
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {

49
hosts/lio/forgejo.nix Normal file
View 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";
};
};
};
};
}

View file

@ -53,7 +53,8 @@
systemName = configuration_name; systemName = configuration_name;
boot.systemd.enable = true; boot.systemd.enable = true;
general = { general = {
disableRemoteBuildsOnLio = true; # disableRemoteBuildsOnLio = true;
enableSleep = true;
}; };
secrets.enable = true; secrets.enable = true;
desktopEnvironment.gnome.enable = true; desktopEnvironment.gnome.enable = true;