aboutsummaryrefslogtreecommitdiff
path: root/modules/calendar.home
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-02-01 13:32:56 +0530
committerAkshay Nair <phenax5@gmail.com>2026-02-01 13:32:56 +0530
commit7bdc3fe961cee0c195e6f9e969ed8c947faf6305 (patch)
tree2e9158d17263b7275ff5e4c134d4d813f546ba26 /modules/calendar.home
parent31541c1ebb6eb6b819b6083a37b8d4ba236f2fe3 (diff)
downloadnixos-config-7bdc3fe961cee0c195e6f9e969ed8c947faf6305.tar.gz
nixos-config-7bdc3fe961cee0c195e6f9e969ed8c947faf6305.zip
Color configuration
Diffstat (limited to 'modules/calendar.home')
-rw-r--r--modules/calendar.home/default.nix4
-rw-r--r--modules/calendar.home/orgmode-notifier.module.nix5
-rw-r--r--modules/calendar.home/remind-agenda.nix33
3 files changed, 39 insertions, 3 deletions
diff --git a/modules/calendar.home/default.nix b/modules/calendar.home/default.nix
index 06ea982..6f9aa23 100644
--- a/modules/calendar.home/default.nix
+++ b/modules/calendar.home/default.nix
@@ -9,7 +9,7 @@ in
];
services.ical2org = {
- enable = true;
+ enable = false;
icalLink = private.icalLink;
outputPath = "${config.home.homeDirectory}/nixos/extras/notes/calendar-sync.autogen.org";
syncFrequency = "*:0/10"; # Every 10 minutes
@@ -25,7 +25,7 @@ in
};
services.orgmode-notifier = {
- enable = true;
+ enable = false;
pollFrequency = "*:0/1"; # Every minute
};
}
diff --git a/modules/calendar.home/orgmode-notifier.module.nix b/modules/calendar.home/orgmode-notifier.module.nix
index b33c2fe..1d6fd90 100644
--- a/modules/calendar.home/orgmode-notifier.module.nix
+++ b/modules/calendar.home/orgmode-notifier.module.nix
@@ -8,7 +8,10 @@ let
Type = "oneshot";
ExecStart = "${config.xdg.configHome}/nvim/orgmode_notifier.sh";
WorkingDirectory = config.home.homeDirectory;
- Environment = "PATH=${pkgs.neovim}/bin:${pkgs.libnotify}/bin:/usr/bin:/bin";
+ Environment = [
+ # NOTE: Bug in orgmode-notifier (pkgs.neovim doesnt build correctly)
+ "PATH=${pkgs.neovim}/bin:${pkgs.libnotify}/bin:/usr/bin:/bin"
+ ];
};
};
diff --git a/modules/calendar.home/remind-agenda.nix b/modules/calendar.home/remind-agenda.nix
new file mode 100644
index 0000000..8c2871a
--- /dev/null
+++ b/modules/calendar.home/remind-agenda.nix
@@ -0,0 +1,33 @@
+{ pkgs ? import <nixpkgs> {} }:
+with pkgs.lib;
+let
+ python = (pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
+ colorama
+ termcolor
+ datetime
+ ]));
+in pkgs.stdenv.mkDerivation {
+ pname = "remind-agenda";
+ version = "0.0.0";
+
+ src = pkgs.fetchgit {
+ url = "https://gitlab.com/dkabus/remind-agenda.git";
+ rev = "cf4cd6f79aabb16317fc6008588536af5d2e4d9a";
+ hash = "sha256-f8Tmgz9Tw6gQjqtWhvteajOYieAu8OZy/+FHWC9885U=";
+ };
+
+ buildInputs = with pkgs; [ ];
+
+ phases = [ "unpackPhase" "buildPhase" "installPhase" ];
+
+ buildPhase = ''
+ cp $src/remind-agenda .
+ sed -i 's|/bin/python3|${python}/bin/python3|' ./remind-agenda
+ '';
+
+ installPhase = ''
+ mkdir -p $out/bin;
+ cp ./remind-agenda $out/bin;
+ '';
+}
+