30 lines
638 B
Nix
30 lines
638 B
Nix
{ 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;
|
|
};
|
|
|
|
}
|