use unstable gitea on stable nixos
This commit is contained in:
parent
76f8455aef
commit
21384aaa8b
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue