replace gitlab by gitea
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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
29
services/gitea.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
locations."/".proxyPass = "http://unix:/run/gitlab/gitlab-workhorse.socket";
|
||||
# locations."/".proxyPass = "http://localhost:3000";
|
||||
};
|
||||
|
||||
services.gitlab = {
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user