Group modules into feature directories
This commit is contained in:
parent
0baed7e6f6
commit
9782272a76
49 changed files with 244 additions and 83 deletions
nix/modules/nixos/features/homelab
21
nix/modules/nixos/features/homelab/gitea.nix
Normal file
21
nix/modules/nixos/features/homelab/gitea.nix
Normal file
|
@ -0,0 +1,21 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
options.features.desktop.homelab.gitea.enable = lib.mkEnableOption "Enable gitea";
|
||||
|
||||
config = lib.mkIf config.features.desktop.homelab.gitea.enable {
|
||||
services.gitea = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
HTTP_PORT = 2222;
|
||||
};
|
||||
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue