mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add forgejo
This commit is contained in:
parent
49e796631b
commit
10dc2af1a2
2 changed files with 17 additions and 0 deletions
16
modules/nixos/server/git.nix
Normal file
16
modules/nixos/server/git.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
let
|
||||
cfg = config.mods.server.git;
|
||||
port = config.mods.server.nginx.ports.git;
|
||||
in with lib; {
|
||||
options.mods.server = {
|
||||
git = {
|
||||
enable = mkEnableOption {
|
||||
default = false;
|
||||
description = "enables forgejo server";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable { services.forgejo = { enable = true; }; };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue