[wikijs] init
All checks were successful
Evaluate Hydra Jobs / eval-hydra-jobs (push) Successful in 2m37s

This commit is contained in:
2024-11-19 22:35:33 +01:00
parent 1cecd21763
commit 2b3c2a8d4a
2 changed files with 65 additions and 0 deletions

View File

@@ -99,4 +99,13 @@ in
./lucia/hardware_configuration.nix
];
};
wikijs = nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = inputs;
modules = makeMicroVM "wikijs" "10.0.0.7" [
./wikijs/configuration.nix
];
};
}

View File

@@ -0,0 +1,56 @@
{ config, lib, pkgs, inputs, ... }:
with lib;
{
networking = {
hostName = mkDefault "wikijs";
useDHCP = false;
nameservers = [ "1.1.1.1" ];
};
networking.firewall.allowedTCPPorts = [ 3000 ];
imports = [
../modules/malobeo_user.nix
../modules/sshd.nix
../modules/minimal_tools.nix
../modules/autoupdate.nix
];
malobeo.autoUpdate = {
enable = true;
url = "https://hydra.dynamicdiscord.de";
project = "malobeo";
jobset = "infrastructure";
cacheurl = "https://cache.dynamicdiscord.de";
};
systemd.services.wiki-js = {
requires = [ "postgresql.service" ];
after = [ "postgresql.service" ];
};
services.wiki-js = {
enable = true;
settings.db = {
db = "wiki-js";
host = "/run/postgresql";
type = "postgres";
user = "wiki-js";
};
};
services.postgresql = {
enable = true;
ensureDatabases = [ "wiki-js" ];
ensureUsers = [{
name = "wiki-js";
ensureDBOwnership = true;
}];
};
system.stateVersion = "22.11"; # Did you read the comment?
}