Compare commits

...

3 commits

2 changed files with 13 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
...
}: let
manualHostname = "manual.everest.tailscale";
@ -31,10 +32,14 @@ in {
virtualHosts = {
nixos-manual = {
hostName = manualHostname;
extraConfig = ''
extraConfig = let
manual = pkgs.compressDrvWeb config.system.build.manual.manualHTML {};
in ''
import tailscale
file_server
root * ${config.system.build.manual.manualHTML}/share/doc/nixos
file_server {
precompressed zstd br gzip
}
root * ${manual}/share/doc/nixos
'';
};
downloads = {

View file

@ -2,6 +2,7 @@
config,
lib,
flakeSelf,
pkgs,
...
}: let
hostSecrets = "${flakeSelf.inputs.secrets}/" + config.networking.hostName + "/";
@ -24,6 +25,7 @@ in {
specialisation.forgejoEnableRegistration.configuration.services.forgejo.settings.service.DISABLE_REGISTRATION = false;
services.forgejo = {
enable = true;
package = pkgs.forgejo;
settings = {
service = {
DISABLE_REGISTRATION = lib.mkDefault true;
@ -41,6 +43,9 @@ in {
DEFAULT_PUSH_CREATE_PRIVATE = true;
DEFAULT_BRANCH = "main";
};
indexer = {
REPO_INDEXER_ENABLED = true;
};
};
};