From 74f425ed6907747462a95d5f5131f5fd806f44f6 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 31 Dec 2024 19:29:21 +0400 Subject: [PATCH] services init --- modules/server/services/default.nix | 1 + modules/server/services/forgejo.nix | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 modules/server/services/default.nix create mode 100644 modules/server/services/forgejo.nix diff --git a/modules/server/services/default.nix b/modules/server/services/default.nix new file mode 100644 index 00000000..8d2b47d0 --- /dev/null +++ b/modules/server/services/default.nix @@ -0,0 +1 @@ +{ imports = [ ./forgejo.nix ]; } diff --git a/modules/server/services/forgejo.nix b/modules/server/services/forgejo.nix new file mode 100644 index 00000000..e24cd8d9 --- /dev/null +++ b/modules/server/services/forgejo.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: +with lib; +let cfg = config.void.services.forgejo; +in { + options.void.server.forgejo = { enable = mkEnableOption false; }; + + config = mkIf cfg.enable { + services.forgejo = { + enable = true; + # settings = { }; + }; + }; +}