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

View File

@@ -15,7 +15,7 @@
./services/enabled.nix
./users.nix
./module/news2kindle/news2kindle.nix
./module/etherpad/etherpad.nix
# ./module/etherpad/etherpad.nix
];
nixpkgs.config.allowUnfree = true;

View File

@@ -2,12 +2,12 @@
{
environment.systemPackages = with pkgs; [
wget curl vim nano zsh fzf tmux unzip bzip2 zip p7zip ncurses zlibStatic ncurses5 zlib
wget curl vim nano zsh fzf tmux git
];
imports =
[
./zsh.nix
./ledebuild_progs.nix
# ./ledebuild_progs.nix
];
}

View File

@@ -6,11 +6,11 @@
./sshd.nix
./teamspeak.nix
./nginx.nix
./gitlab.nix
# ./gitlab.nix
./nextcloud.nix
./news2kindle.nix
./resilio.nix
./sks.nix
# ./etherpad.nix
./gitea.nix
];
}

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

View File

@@ -5,6 +5,7 @@
enableACME = true;
forceSSL = true;
locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
# locations."/".proxyPass = "http://localhost:3000";
};
services.gitlab = {

View File

@@ -9,12 +9,16 @@ let
};
in
{
virtualisation.docker.enable = true;
users = {
defaultUserShell = pkgs.zsh;
extraUsers.etherpad = myPublicSshKeys // { isNormalUser = true; home = "/home/etherpad";};
extraUsers.sshuser = myPublicSshKeys // { isNormalUser = true; home = "/home/sshuser";};
extraUsers.nextcloud = myPublicSshKeys // { isNormalUser = true; home = "/home/nextcloud"; group = "nextcloud";};
extraUsers.ledebuild = myPublicSshKeys // { isNormalUser = true; home = "/home/ledebuild";};
extraUsers.ledebuild = myPublicSshKeys // { isNormalUser = true; home = "/home/ledebuild"; extraGroups = [ "docker" ];};
# extraUsers.gitea = myPublicSshKeys // { isNormalUser = true; home = "/home/gitea"; };
extraGroups.nexdcloud.name = "nextcloud";
};
}