From b28454e611af9d52117ed6e67dd9f2bea49a064d Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Fri, 22 Apr 2022 00:16:49 +0200 Subject: [PATCH] Add initial gitea module --- modules/gitea/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 modules/gitea/default.nix diff --git a/modules/gitea/default.nix b/modules/gitea/default.nix new file mode 100644 index 0000000..d88d114 --- /dev/null +++ b/modules/gitea/default.nix @@ -0,0 +1,14 @@ +{ pkgs, config, lib, ...}: +with lib; +let + cfg = config.eboskma.gitea; +in +{ + options.eboskma.gitea = { enable = mkEnableOption "gitea"; }; + + config = mkIf (cfg.enable) { + services.gitea = { + enable = true; + }; + }; +}