From 0a4450687286ea27ec4b7a0763078de45e711fc3 Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Fri, 25 Apr 2025 18:41:12 -0500 Subject: [PATCH] forgejo test and some sleep updates for the laptops --- hosts/gpdPocket3/flake.nix | 1 + hosts/lio/flake.nix | 1 + hosts/lio/forgejo.nix | 49 ++++++++++++++++++++++++++++++++++++++ hosts/oren/flake.nix | 3 ++- 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 hosts/lio/forgejo.nix diff --git a/hosts/gpdPocket3/flake.nix b/hosts/gpdPocket3/flake.nix index 87d6ee3..eeb3e24 100644 --- a/hosts/gpdPocket3/flake.nix +++ b/hosts/gpdPocket3/flake.nix @@ -43,6 +43,7 @@ boot.systemd.enable = true; desktopEnvironment.gnome.enable = true; secrets.enable = true; + general.enableSleep = true; programs = { qFlipper.enable = true; rustDev.enable = true; diff --git a/hosts/lio/flake.nix b/hosts/lio/flake.nix index e61e04e..0e6b9f3 100644 --- a/hosts/lio/flake.nix +++ b/hosts/lio/flake.nix @@ -31,6 +31,7 @@ ./configuration.nix ./hardware-configuration.nix (import ./containers.nix { inherit common; }) + ./forgejo.nix ( { config, pkgs, ... }: { diff --git a/hosts/lio/forgejo.nix b/hosts/lio/forgejo.nix new file mode 100644 index 0000000..089fe4c --- /dev/null +++ b/hosts/lio/forgejo.nix @@ -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"; + }; + }; + }; + }; +} diff --git a/hosts/oren/flake.nix b/hosts/oren/flake.nix index a63bc1e..9e0cc3e 100644 --- a/hosts/oren/flake.nix +++ b/hosts/oren/flake.nix @@ -53,7 +53,8 @@ systemName = configuration_name; boot.systemd.enable = true; general = { - disableRemoteBuildsOnLio = true; + # disableRemoteBuildsOnLio = true; + enableSleep = true; }; secrets.enable = true; desktopEnvironment.gnome.enable = true;