diff --git a/flake.lock b/flake.lock index 5eb6845..bd32473 100644 --- a/flake.lock +++ b/flake.lock @@ -176,11 +176,11 @@ ] }, "locked": { - "lastModified": 1700097994, - "narHash": "sha256-0IUYijMM+TZyuWYMowRPAzK18vuJje0OuJQRhUv+Ts8=", + "lastModified": 1700219613, + "narHash": "sha256-26GCFDYrDttfvcKDaYFER7qahDrHG2NZGlnCzPaL+LE=", "owner": "thiloho", "repo": "todos", - "rev": "3cb88c135f554ed94195075cb8a487ee1acf695d", + "rev": "8b992461e3d2d07abf6b204298e46cc1b7ef355a", "type": "github" }, "original": { diff --git a/nixos-configurations/server/default.nix b/nixos-configurations/server/default.nix index 317c16d..5f07b28 100644 --- a/nixos-configurations/server/default.nix +++ b/nixos-configurations/server/default.nix @@ -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"]; diff --git a/nixos-configurations/shared-desktop.nix b/nixos-configurations/shared-desktop.nix index 7b1d783..49ea4fa 100644 --- a/nixos-configurations/shared-desktop.nix +++ b/nixos-configurations/shared-desktop.nix @@ -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