use unstable gitea on stable nixos

This commit is contained in:
Cyryl Płotnicki 2023-07-23 08:14:38 +01:00
parent 76f8455aef
commit 21384aaa8b

View file

@ -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;