Try out the better local config declaration.

This commit is contained in:
Root User 2026-02-06 21:45:40 +01:00
parent 39ad4beff8
commit 598f9bb256
Signed by: root
GPG key ID: 087F0A95E5766D72
3 changed files with 27 additions and 10 deletions

View file

@ -8,10 +8,19 @@
cfg = config.services.forgejo;
srv = cfg.settings.server;
in {
local.hostname = "forgejoprg";
local.username = "forgejoprg";
local.userDescription = "Forgejo Admin";
local.address = "10.1.1.4";
options.local = {
hostname = lib.mkOption {type = lib.types.str;};
username = lib.mkOption {type = lib.types.str;};
userDescription = lib.mkOption {type = lib.types.str;};
address = lib.mkOption {type = lib.types.str;};
};
config = {
local.hostname = "forgejoprg";
local.username = "forgejoprg";
local.userDescription = "Forgejo Admin";
local.address = "10.1.1.4";
};
# Enable Fedgejo service
services.nginx = {