replace gitlab by gitea

This commit is contained in:
stubbfel
2018-02-28 23:17:04 +01:00
parent dab44cd760
commit cbb5761199
6 changed files with 40 additions and 6 deletions

29
services/gitea.nix Normal file
View File

@@ -0,0 +1,29 @@
{ config, pkgs, ... }:
#let
# pkgs = import <nixos-unstable> {};
#in
{
# environment.systemPackages = [ (import <nixos-unstable> {}).gitea ];
services.nginx.virtualHosts."gitea.stubbe.rocks" = {
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://localhost:3000";
};
nixpkgs.config.packageOverrides = pkgs: {
gitea = (import <nixos-unstable> {}).gitea;
};
users.users.gitea.shell = pkgs.zsh;
imports = [
<nixos-unstable/nixos/modules/services/misc/gitea.nix>
];
services.postgresql.enable = true;
services.gitea = {
enable = true;
useWizard = true;
};
}