Split db.py and make declarative models

This commit is contained in:
2023-08-29 22:50:53 +02:00
parent c25e5cec27
commit cde79ccb34
30 changed files with 415 additions and 224 deletions

View File

@@ -32,7 +32,7 @@ in {
wantedBy = [ "default.target" ];
serviceConfig = {
ExecStartPre = "-${screen} -X -S dibbler kill";
ExecStart = "${screen} -dmS dibbler -O -l ${cfg.package}/bin/dibbler --config ${cfg.config}";
ExecStart = "${screen} -dmS dibbler -O -l ${cfg.package}/bin/dibbler --config ${cfg.config} loop";
ExecStartPost = "${screen} -X -S dibbler width 42 80";
User = "dibbler";
Group = "dibbler";
@@ -41,7 +41,7 @@ in {
Restart = "always";
RestartSec = "5s";
SuccessExitStatus = 1;
};
};
};
# https://github.com/NixOS/nixpkgs/issues/84105