From 94f2c28237f4d58be48dadfa8b3cbae51e22bd6b Mon Sep 17 00:00:00 2001 From: OCbwoy3 Date: Tue, 31 Dec 2024 23:13:31 +0200 Subject: [PATCH] a --- .../{tuxstrap-reminder.nix => tuxstrap-crontab.nix} | 2 +- hosts/default/configuration.nix | 13 +------------ 2 files changed, 2 insertions(+), 13 deletions(-) rename hosts/default/apps/{tuxstrap-reminder.nix => tuxstrap-crontab.nix} (87%) diff --git a/hosts/default/apps/tuxstrap-reminder.nix b/hosts/default/apps/tuxstrap-crontab.nix similarity index 87% rename from hosts/default/apps/tuxstrap-reminder.nix rename to hosts/default/apps/tuxstrap-crontab.nix index 86d4e2c..185eb4e 100644 --- a/hosts/default/apps/tuxstrap-reminder.nix +++ b/hosts/default/apps/tuxstrap-crontab.nix @@ -17,7 +17,7 @@ pkgs.stdenv.mkDerivation { installPhase = '' mkdir -p $out/bin - cp daily-challenge-reminder-crontab.ts $out/bin/crontab-script.ts + # cp daily-challenge-reminder-crontab.ts $out/bin/crontab-script.ts cp tuxstrap-crontab $out/bin/ ''; } diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index f4d9c5c..056a891 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -1,8 +1,5 @@ { config, inputs, pkgs, ... }: -let - tuxstrapReminderCrontab = pkgs.callPackage ./apps/tuxstrap-reminder.nix {}; -in { imports = [ @@ -71,14 +68,6 @@ in portalPackage = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.xdg-desktop-portal-hyprland; }; - - services.cron = { - enable = true; - systemCronJobs = [ - "*/1 * * * * ocbwoy3 bun run ${tuxstrapReminderCrontab}/bin/crontab-script.ts" - ]; - }; - programs.zsh = { enable = true; autosuggestions.enable = true; @@ -110,7 +99,7 @@ in hyfetch kitty inputs.ghostty.packages.${pkgs.stdenv.hostPlatform.system}.ghostty - # (pkgs.callPackage ./apps/tuxstrap.nix {}) + (callPackage ./apps/tuxstrap-crontab.nix {}) ]; xdg.terminal-exec.enable = true;