From 8d71996eee2cc7753bb2666700eba4f776dfb106 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Fri, 21 Aug 2026 10:12:58 -0500 Subject: [PATCH] feat(system): add dankcalendar and danksearch integrations - Add `dankcalendar` and `danksearch` flake inputs in `flake.nix` and pin lockfile revisions. - Enable `programs.dank-calendar` with systemd user session integration in system graphical modules. - Configure `programs.dsearch` in Home Manager to index user files, dotfiles, and code repositories with exclusion rules. - Update desktop server specialisation to disable `dank-calendar` in headless mode. --- flake.lock | 91 +++++++++++++++++++++++++++------ flake.nix | 18 ++++++- hosts/desktop/configuration.nix | 1 + modules/system/graphical.nix | 8 +++ modules/user/graphical.nix | 48 +++++++++++++++++ 5 files changed, 149 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index 351b0a0..0c96d37 100644 --- a/flake.lock +++ b/flake.lock @@ -8,11 +8,11 @@ ] }, "locked": { - "lastModified": 1787210449, - "narHash": "sha256-WRhpJjhWT1mYLXlOhEgwFpygbdQ+oMoRtgJMtHOEvPg=", + "lastModified": 1787296859, + "narHash": "sha256-5bU8RrYjyuzT6/HDkq4zJHwSRsC+yEZG98pjmDLNFyM=", "owner": "jacopone", "repo": "antigravity-nix", - "rev": "3088d28136f3914597ba61b4082eefb8eb386647", + "rev": "c44bacfbc0dbe594bc6b59ae0c709275dbc3367b", "type": "github" }, "original": { @@ -29,11 +29,11 @@ ] }, "locked": { - "lastModified": 1787243426, - "narHash": "sha256-VYdCpmyEaHVW3ryqnXbvwiokUL9X+jhzkiqWE2stMS0=", + "lastModified": 1787320164, + "narHash": "sha256-tXxTfwVUv080KdtZ8dgTMpDALkqYxXq4jkeSeJtq6Hk=", "owner": "AvengeMedia", "repo": "dank-greeter", - "rev": "47daf48fcb884e929018e759ce04839c07894c97", + "rev": "278cffe0ff8b624d68061ef88ef1eaa45544d369", "type": "github" }, "original": { @@ -59,6 +59,22 @@ } }, "dank-qml-common_2": { + "flake": false, + "locked": { + "lastModified": 1784074596, + "narHash": "sha256-/rCqHgC39mHvBDxb/dZLWCQ3W4ev94y3/1KtCRSPDp8=", + "owner": "AvengeMedia", + "repo": "dank-qml-common", + "rev": "b50afcf549f7e9c8f07c85b7f3fbba867701650d", + "type": "github" + }, + "original": { + "owner": "AvengeMedia", + "repo": "dank-qml-common", + "type": "github" + } + }, + "dank-qml-common_3": { "flake": false, "locked": { "lastModified": 1787154726, @@ -74,6 +90,47 @@ "type": "github" } }, + "dankcalendar": { + "inputs": { + "dank-qml-common": "dank-qml-common_2", + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1787243439, + "narHash": "sha256-Zy43kvzB2nNxRuDbbcxaYoZ94LX+EWYzaQeSdEm8VsA=", + "owner": "AvengeMedia", + "repo": "dankcalendar", + "rev": "c6952df587fab8b6ce242e50a28517373049521e", + "type": "github" + }, + "original": { + "owner": "AvengeMedia", + "repo": "dankcalendar", + "type": "github" + } + }, + "danksearch": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1787243432, + "narHash": "sha256-bKM3F2Ka4knTLeKEiuy0oLTgr0lhuC/Srq1b+LaUtyM=", + "owner": "AvengeMedia", + "repo": "danksearch", + "rev": "d95d611e25f60542d34cad2ef8eed2c31dff7666", + "type": "github" + }, + "original": { + "owner": "AvengeMedia", + "repo": "danksearch", + "type": "github" + } + }, "dgop": { "inputs": { "nixpkgs": [ @@ -81,11 +138,11 @@ ] }, "locked": { - "lastModified": 1787237811, - "narHash": "sha256-WjcfW/4npIud6tsFXFfIIWL3zn2YCzrKotLNQYGiTGw=", + "lastModified": 1787243419, + "narHash": "sha256-hQ204o7RiHznAgxZQHeHt3NLSpBP1UIn3ZaUKoTm4N4=", "owner": "AvengeMedia", "repo": "dgop", - "rev": "80753bc4c900a2280ad911d41cf233801268ccfd", + "rev": "473bc52af4b760429ea14593208cc211be075817", "type": "github" }, "original": { @@ -96,18 +153,18 @@ }, "dms": { "inputs": { - "dank-qml-common": "dank-qml-common_2", + "dank-qml-common": "dank-qml-common_3", "flake-compat": "flake-compat", "nixpkgs": [ "nixpkgs" ] }, "locked": { - "lastModified": 1787236137, - "narHash": "sha256-FxSFknX2LSoUy746ILPxWEKYFOYNDiuO8k8UJQNBAro=", + "lastModified": 1787324488, + "narHash": "sha256-k3WQd4xRbl2xeACj7iE7wPQ5iVg8FsxiAASjqEVCCmE=", "owner": "AvengeMedia", "repo": "DankMaterialShell", - "rev": "d10ca3865137fd94db43e57ff10ee576aaf8f9ea", + "rev": "20aafebd87f0340c24b585180ab36339d6b154ad", "type": "github" }, "original": { @@ -211,6 +268,8 @@ "inputs": { "antigravity": "antigravity", "dank-greeter": "dank-greeter", + "dankcalendar": "dankcalendar", + "danksearch": "danksearch", "dgop": "dgop", "dms": "dms", "home-manager": "home-manager", @@ -262,11 +321,11 @@ ] }, "locked": { - "lastModified": 1787197732, - "narHash": "sha256-rxqzRhFq8Gpem967K+jGkw4kfm1ZN9bsNzaujG4Z6wc=", + "lastModified": 1787281392, + "narHash": "sha256-WnGPcxoouwp2ZNQ2lBfVunY77AIFy6cdAfT4J5Vw6Fs=", "owner": "0xc000022070", "repo": "zen-browser-flake", - "rev": "dc0baff0a6041483be3816cf2e12ae053b5e458a", + "rev": "4ab199700226db9b91ab69fa2b78816ebe475358", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 53c6a06..69d5fd3 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,18 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + # DankCalendar - calendar daemon and UI for DMS + dankcalendar = { + url = "github:AvengeMedia/dankcalendar"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + # DankSearch - fast indexed filesystem search for DMS + danksearch = { + url = "github:AvengeMedia/danksearch"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + # Zen Browser - modern, lightweight, community-maintained browser zen-browser = { url = "github:0xc000022070/zen-browser-flake"; @@ -52,7 +64,7 @@ # --- System Outputs (Configuration Definitions) --- # Maps host machines to target environments, architecture types, and user settings. - outputs = { self, nixpkgs, home-manager, dms, dgop, dank-greeter, zen-browser, antigravity, ...}@inputs: { + outputs = { self, nixpkgs, home-manager, dms, dgop, dank-greeter, dankcalendar, danksearch, zen-browser, antigravity, ...}@inputs: { nixosConfigurations = { # 🖥️ DESKTOP HOST @@ -65,6 +77,7 @@ ./hosts/desktop/configuration.nix # Desktop environment / system package settings inputs.sops-nix.nixosModules.sops # Import Sops module inputs.dank-greeter.nixosModules.default # Import Dank Greeter module + inputs.dankcalendar.nixosModules.default # Import Dank Calendar module home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; @@ -75,6 +88,7 @@ imports = [ ./home.nix ./hosts/desktop/home.nix + inputs.danksearch.homeModules.default ]; }; } @@ -91,6 +105,7 @@ ./hosts/laptop/hardware-configuration.nix ./hosts/laptop/configuration.nix inputs.dank-greeter.nixosModules.default + inputs.dankcalendar.nixosModules.default home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; @@ -101,6 +116,7 @@ imports = [ ./home.nix ./hosts/laptop/home.nix + inputs.danksearch.homeModules.default ]; }; } diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index 97db31b..b3e49f9 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -72,6 +72,7 @@ programs.hyprland.enable = lib.mkForce false; programs.dms-shell.enable = lib.mkForce false; programs.dms-greeter.enable = lib.mkForce false; + programs.dank-calendar.enable = lib.mkForce false; # 2. Disable peripheral hardware services to reduce power consumption services.pipewire.enable = lib.mkForce false; diff --git a/modules/system/graphical.nix b/modules/system/graphical.nix index f41d10c..54e7cff 100644 --- a/modules/system/graphical.nix +++ b/modules/system/graphical.nix @@ -31,5 +31,13 @@ compositor.name = "niri"; configHome = "/home/kiskaadee"; }; + + # 📅 DankCalendar Daemon & UI + # Provides calendar integration (Local, CalDAV, Google, Microsoft) for DMS + programs.dank-calendar = { + enable = true; + systemd.enable = true; + systemd.target = "graphical-session.target"; + }; } diff --git a/modules/user/graphical.nix b/modules/user/graphical.nix index 1bc8682..67148e0 100644 --- a/modules/user/graphical.nix +++ b/modules/user/graphical.nix @@ -124,4 +124,52 @@ After = [ "graphical-session-pre.target" ]; }; }; + + # 🔍 DankSearch - Fast Indexed Filesystem Search Service + programs.dsearch = { + enable = true; + config = { + listen_addr = "127.0.0.1:43654"; + max_file_bytes = 2097152; + worker_count = 4; + index_all_files = true; + text_extensions = [ + ".txt" ".md" ".go" ".py" ".js" ".ts" + ".jsx" ".tsx" ".json" ".yaml" ".yml" + ".toml" ".html" ".css" ".rs" ".c" + ".cpp" ".h" ".java" ".rb" ".php" ".sh" ".nix" ".kdl" + ]; + index_paths = [ + { + path = "/home/kiskaadee"; + max_depth = 5; + exclude_hidden = true; + extract_exif = true; + exclude_dirs = [ + "node_modules" "bower_components" "__pycache__" "site-packages" + "venv" ".venv" "target" "dist" "build" "vendor" ".cache" + ]; + } + { + path = "/home/kiskaadee/Repos"; + max_depth = 6; + exclude_hidden = true; + extract_exif = false; + exclude_dirs = [ + "node_modules" "bower_components" "__pycache__" "site-packages" + "venv" ".venv" "target" "dist" "build" "vendor" ".cache" + ".git" ".idea" ".vscode" + ]; + } + { + path = "/home/kiskaadee/Config"; + max_depth = 6; + exclude_hidden = false; + extract_exif = false; + merge_default_exclude_dirs = true; + exclude_dirs = [ ".git" ]; + } + ]; + }; + }; }