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, ... }:
|
{ config, pkgs, inputs, lib, system, ... }:
|
||||||
let
|
let
|
||||||
|
unstable = inputs.nixpkgs-nixos-unstable;
|
||||||
|
package = unstable.legacyPackages."${system}".gitea;
|
||||||
httpPort = 8083;
|
httpPort = 8083;
|
||||||
sshPort = 22;
|
sshPort = 22;
|
||||||
domain = "git.cyplo.dev";
|
domain = "git.cyplo.dev";
|
||||||
|
@ -52,7 +54,7 @@ in {
|
||||||
group = systemGroupName;
|
group = systemGroupName;
|
||||||
};
|
};
|
||||||
|
|
||||||
containers.gitea-lfs = {
|
containers.gitea = {
|
||||||
autoStart = true;
|
autoStart = true;
|
||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
{
|
{
|
||||||
|
@ -80,8 +82,12 @@ in {
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
allowNoPasswordLogin = true;
|
allowNoPasswordLogin = true;
|
||||||
};
|
};
|
||||||
|
disabledModules = [ "services/misc/gitea.nix" ];
|
||||||
|
imports =
|
||||||
|
[ "${unstable}/nixos/modules/services/misc/gitea.nix" ];
|
||||||
services.gitea = {
|
services.gitea = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
inherit package;
|
||||||
stateDir = path;
|
stateDir = path;
|
||||||
user = systemUserName;
|
user = systemUserName;
|
||||||
mailerPasswordFile = mailgunSmtpPasswordPath;
|
mailerPasswordFile = mailgunSmtpPasswordPath;
|
||||||
|
|
Loading…
Reference in a new issue