My Nix Configuration

[modules.nixos] Fix forgejo-runner service

Changed files
+16 -12
modules
nixos
services
forgejo-runner
systems
x86_64-linux
marvin
services
+2 -2
modules/nixos/services/forgejo-runner/default.nix
···
};
};
};
-
cfg = config.pyrox.services.forgejo-runner;
+
cfg = config.py.services.forgejo-runner;
in
{
-
options.pyrox.services.forgejo-runner = {
+
options.py.services.forgejo-runner = {
enable = lib.mkEnableOption "Forgejo Actions Runner configuration";
tokenFile = lib.mkOption {
type = lib.types.path;
+14 -10
systems/x86_64-linux/marvin/services/git.nix
···
-
{
-
config,
-
lib,
-
...
-
}: let
+
{ config, lib, ... }:
+
let
cfg = config.services.forgejo.settings;
age = config.age.secrets;
stateDir = "/var/lib/forgejo";
···
};
d = lib.data.services.git;
-
in {
-
pyrox.services.forgejo-runner = {
+
in
+
{
+
py.services.forgejo-runner = {
enable = true;
tokenFile = age.forgejo-default-runner-token.path;
};
···
APP_NAME = "PyroNet Git";
RUN_MODE = "prod";
};
-
attachment = {MAX_SIZE = 200;};
+
attachment = {
+
MAX_SIZE = 200;
+
};
mailer = {
ENABLED = true;
FROM = "PyroNet Git <git@pyrox.dev>";
···
SMTP_PORT = 465;
USER = "git@pyrox.dev";
};
-
picture = {ENABLE_FEDERATED_AVATAR = true;};
+
picture = {
+
ENABLE_FEDERATED_AVATAR = true;
+
};
ui = {
DEFAULT_SHOW_FULL_NAME = true;
DEFAULT_THEME = "catppuccin-mocha-blue";
···
AUTHOR = "Pyrox";
DESCRIPTION = "PyroNet Git Services";
};
-
metrics = {ENABLED = true;};
+
metrics = {
+
ENABLED = true;
+
};
server = {
DISABLE_SSH = true;
DOMAIN = d.extUrl;