make unique from gitea
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
outputs =
|
||||
{ ... }:
|
||||
{
|
||||
nixosModules.gitea =
|
||||
nixosModules.hl-gitea =
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
@@ -17,10 +17,10 @@
|
||||
}:
|
||||
let
|
||||
k3sDir = ./k3s;
|
||||
opts = config.services.gitea;
|
||||
opts = config.services.hl-gitea;
|
||||
in
|
||||
{
|
||||
options.services.gitea = {
|
||||
options.services.hl-gitea = {
|
||||
enable = lib.mkEnableOption "Run Gitea in k3s";
|
||||
|
||||
default-nginx = {
|
||||
@@ -49,7 +49,7 @@
|
||||
};
|
||||
|
||||
config = lib.mkIf opts.enable {
|
||||
systemd.services.gitea = {
|
||||
systemd.services.hl-gitea = {
|
||||
description = "oneshot apply service to k3s";
|
||||
after = [ "k3s.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
# GITEA SERVICE #
|
||||
# ================================ #
|
||||
|
||||
services.gitea = {
|
||||
services.hl-gitea = {
|
||||
enable = false;
|
||||
credentialsFile = config.sops.secrets."minio-credentials".path;
|
||||
database-hostname = "127.0.0.1:5432"; # whatever port I host psql on below
|
||||
|
||||
+1
-1
@@ -81,7 +81,7 @@
|
||||
nimh-static.nixosModules.nimh-static
|
||||
mc-service.nixosModules.mc-service
|
||||
postgresql-db.nixosModules.postgresql-db
|
||||
gitea.nixosModules.gitea
|
||||
gitea.nixosModules.hl-gitea
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
|
||||
Reference in New Issue
Block a user