28 lines
521 B
Nix
28 lines
521 B
Nix
{ ... }:
|
|
{
|
|
_class = "clan.service";
|
|
manifest.name = "gitea";
|
|
manifest.description = "Git with a cup of tea!";
|
|
manifest.categories = [ "System" ];
|
|
|
|
roles.default = {
|
|
|
|
perInstance.nixosModule =
|
|
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
services.gitea = {
|
|
enable = lib.mkDefault true;
|
|
dump = {
|
|
enable = lib.mkDefault true;
|
|
};
|
|
};
|
|
|
|
clan.core.state.gitea.folders = [ config.services.gitea.dump.backupDir ];
|
|
};
|
|
};
|
|
}
|