diff --git a/nixos/boxes/vpsfree1/gitea.nix b/nixos/boxes/vpsfree1/gitea.nix index a3502df0..ea585a20 100644 --- a/nixos/boxes/vpsfree1/gitea.nix +++ b/nixos/boxes/vpsfree1/gitea.nix @@ -1,5 +1,7 @@ { config, pkgs, inputs, lib, system, ... }: let + unstable = inputs.nixpkgs-nixos-unstable; + package = unstable.legacyPackages."${system}".gitea; httpPort = 8083; sshPort = 22; domain = "git.cyplo.dev"; @@ -52,7 +54,7 @@ in { group = systemGroupName; }; - containers.gitea-lfs = { + containers.gitea = { autoStart = true; forwardPorts = [ { @@ -80,8 +82,12 @@ in { mutableUsers = false; allowNoPasswordLogin = true; }; + disabledModules = [ "services/misc/gitea.nix" ]; + imports = + [ "${unstable}/nixos/modules/services/misc/gitea.nix" ]; services.gitea = { enable = true; + inherit package; stateDir = path; user = systemUserName; mailerPasswordFile = mailgunSmtpPasswordPath;