mirror of
https://github.com/thiloho/nixos-config.git
synced 2025-11-22 11:31:36 +01:00
Add systemd service to update due date in app
This commit is contained in:
@@ -144,6 +144,21 @@
|
||||
Restart = "always";
|
||||
};
|
||||
};
|
||||
todoapp-check-due-dates = {
|
||||
description = "Set is_overdue for todo in database to true if todo is overdue";
|
||||
path = [
|
||||
pkgs.postgresql_15
|
||||
];
|
||||
script = ''
|
||||
psql -d todos -c "UPDATE user_todo SET is_overdue = true WHERE due_date::date < CURRENT_DATE AND is_completed = false AND is_overdue = false"
|
||||
'';
|
||||
serviceConfig = {
|
||||
User = "postgres";
|
||||
};
|
||||
wantedBy = ["timers.target"];
|
||||
partOf = [ "todoapp.service" ];
|
||||
startAt = "daily";
|
||||
};
|
||||
denbot = {
|
||||
description = "Thilo's Den discord bot";
|
||||
wantedBy = ["multi-user.target"];
|
||||
|
||||
@@ -56,6 +56,7 @@
|
||||
userSettings = {
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = "nil";
|
||||
"window.titleBarStyle" = "custom";
|
||||
};
|
||||
};
|
||||
git = {
|
||||
@@ -69,9 +70,9 @@
|
||||
obs-studio.enable = true;
|
||||
};
|
||||
home = {
|
||||
sessionVariables = {
|
||||
NIXOS_OZONE_WL=1;
|
||||
};
|
||||
# sessionVariables = {
|
||||
# NIXOS_OZONE_WL=1;
|
||||
# };
|
||||
packages = with pkgs; [
|
||||
libreoffice
|
||||
airshipper
|
||||
|
||||
Reference in New Issue
Block a user