Eintopf: Difference between revisions
Initial page |
m Removed the "will be stable stable starting from 24.11" notice |
||
(5 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
== Setup == | == Setup == | ||
A minimal local example setup would look like this<syntaxhighlight lang="nix"> | |||
services.eintopf | A minimal local example setup would look like this | ||
</syntaxhighlight>The web service will be available at http://localhost:3333 | |||
<syntaxhighlight lang="nix"> | |||
environment.etc."eintopf-secrets".text = '' | |||
EINTOPF_ADMIN_PASSWORD=test123 | |||
''; | |||
services.eintopf = { | |||
enable = true; | |||
settings.EINTOPF_ADMIN_EMAIL = "test@example.org"; | |||
secrets = [ /etc/eintopf-secrets ]; | |||
}; | |||
</syntaxhighlight> | |||
The web service will be available at http://localhost:3333. The administration login page is available at http://localhost:3333/backstage where you can use the credentials specified above. | |||
== Configuration == | |||
=== Templates === | |||
Following example packages the "karlsunruh" template and set it as default for Eintopf.<syntaxhighlight lang="nix"> | |||
{ pkgs, ... }: | |||
let | |||
template-karlsunruh = pkgs.stdenv.mkDerivation { | |||
name = "karlsunruh"; | |||
src = pkgs.fetchgit { | |||
url = "https://git.project-insanity.org/onny/eintopf-karlsunruh.git"; | |||
rev = "81cb96424b1162b6dd20c1b22f03dbdf49ae30d4"; | |||
hash = "sha256-+OeZG6+yZ0CwuIEN7pc0MankepZ6npiOD8RMyvWhQrY="; | |||
}; | |||
dontBuild = true; | |||
installPhase = '' | |||
cp -r . $out/ | |||
''; | |||
}; | |||
in | |||
{ | |||
services.eintopf = { | |||
enable = true; | |||
settings = { | |||
EINTOPF_THEMES = "eintopf,${template-karlsunruh}"; | |||
}; | |||
}; | |||
} | |||
</syntaxhighlight> | |||
[[Category:Server]] | |||
[[Category:Web Applications]] |
Latest revision as of 21:43, 9 December 2024
Eintopf is a community event calendar for groups and places.
Setup
A minimal local example setup would look like this
environment.etc."eintopf-secrets".text = ''
EINTOPF_ADMIN_PASSWORD=test123
'';
services.eintopf = {
enable = true;
settings.EINTOPF_ADMIN_EMAIL = "test@example.org";
secrets = [ /etc/eintopf-secrets ];
};
The web service will be available at http://localhost:3333. The administration login page is available at http://localhost:3333/backstage where you can use the credentials specified above.
Configuration
Templates
Following example packages the "karlsunruh" template and set it as default for Eintopf.
{ pkgs, ... }:
let
template-karlsunruh = pkgs.stdenv.mkDerivation {
name = "karlsunruh";
src = pkgs.fetchgit {
url = "https://git.project-insanity.org/onny/eintopf-karlsunruh.git";
rev = "81cb96424b1162b6dd20c1b22f03dbdf49ae30d4";
hash = "sha256-+OeZG6+yZ0CwuIEN7pc0MankepZ6npiOD8RMyvWhQrY=";
};
dontBuild = true;
installPhase = ''
cp -r . $out/
'';
};
in
{
services.eintopf = {
enable = true;
settings = {
EINTOPF_THEMES = "eintopf,${template-karlsunruh}";
};
};
}