nixos/eintopf: rename package to lauti

This commit is contained in:
Jonas Heinrich 2025-05-01 11:48:44 +02:00
parent a19c7490fa
commit a22c5fac3f

View File

@ -15,14 +15,14 @@ in
{ {
options.services.eintopf = { options.services.eintopf = {
enable = mkEnableOption "Eintopf community event calendar web app"; enable = mkEnableOption "Lauti (Eintopf) community event calendar web app";
settings = mkOption { settings = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.str;
default = { }; default = { };
description = '' description = ''
Settings to configure web service. See Settings to configure web service. See
<https://codeberg.org/Klasse-Methode/eintopf/src/branch/main/DEPLOYMENT.md> <https://codeberg.org/Klasse-Methode/lauti/src/branch/main/DEPLOYMENT.md>
for available options. for available options.
''; '';
example = literalExpression '' example = literalExpression ''
@ -54,7 +54,7 @@ in
wants = [ "network-online.target" ]; wants = [ "network-online.target" ];
environment = cfg.settings; environment = cfg.settings;
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.eintopf}/bin/eintopf"; ExecStart = lib.getExe pkgs.lauti;
WorkingDirectory = "/var/lib/eintopf"; WorkingDirectory = "/var/lib/eintopf";
StateDirectory = "eintopf"; StateDirectory = "eintopf";
EnvironmentFile = [ cfg.secrets ]; EnvironmentFile = [ cfg.secrets ];