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.
This commit is contained in:
1 parent
069f0c0ca5
commit
8d71996eee
5 files changed
+149
-17
No files matched your search
Generated
+75
-16
@@ -8,11 +8,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787210449,
|
"lastModified": 1787296859,
|
||||||
"narHash": "sha256-WRhpJjhWT1mYLXlOhEgwFpygbdQ+oMoRtgJMtHOEvPg=",
|
"narHash": "sha256-5bU8RrYjyuzT6/HDkq4zJHwSRsC+yEZG98pjmDLNFyM=",
|
||||||
"owner": "jacopone",
|
"owner": "jacopone",
|
||||||
"repo": "antigravity-nix",
|
"repo": "antigravity-nix",
|
||||||
"rev": "3088d28136f3914597ba61b4082eefb8eb386647",
|
"rev": "c44bacfbc0dbe594bc6b59ae0c709275dbc3367b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -29,11 +29,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787243426,
|
"lastModified": 1787320164,
|
||||||
"narHash": "sha256-VYdCpmyEaHVW3ryqnXbvwiokUL9X+jhzkiqWE2stMS0=",
|
"narHash": "sha256-tXxTfwVUv080KdtZ8dgTMpDALkqYxXq4jkeSeJtq6Hk=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "dank-greeter",
|
"repo": "dank-greeter",
|
||||||
"rev": "47daf48fcb884e929018e759ce04839c07894c97",
|
"rev": "278cffe0ff8b624d68061ef88ef1eaa45544d369",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -59,6 +59,22 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dank-qml-common_2": {
|
"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,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787154726,
|
"lastModified": 1787154726,
|
||||||
@@ -74,6 +90,47 @@
|
|||||||
"type": "github"
|
"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": {
|
"dgop": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
@@ -81,11 +138,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787237811,
|
"lastModified": 1787243419,
|
||||||
"narHash": "sha256-WjcfW/4npIud6tsFXFfIIWL3zn2YCzrKotLNQYGiTGw=",
|
"narHash": "sha256-hQ204o7RiHznAgxZQHeHt3NLSpBP1UIn3ZaUKoTm4N4=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "dgop",
|
"repo": "dgop",
|
||||||
"rev": "80753bc4c900a2280ad911d41cf233801268ccfd",
|
"rev": "473bc52af4b760429ea14593208cc211be075817",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -96,18 +153,18 @@
|
|||||||
},
|
},
|
||||||
"dms": {
|
"dms": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"dank-qml-common": "dank-qml-common_2",
|
"dank-qml-common": "dank-qml-common_3",
|
||||||
"flake-compat": "flake-compat",
|
"flake-compat": "flake-compat",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787236137,
|
"lastModified": 1787324488,
|
||||||
"narHash": "sha256-FxSFknX2LSoUy746ILPxWEKYFOYNDiuO8k8UJQNBAro=",
|
"narHash": "sha256-k3WQd4xRbl2xeACj7iE7wPQ5iVg8FsxiAASjqEVCCmE=",
|
||||||
"owner": "AvengeMedia",
|
"owner": "AvengeMedia",
|
||||||
"repo": "DankMaterialShell",
|
"repo": "DankMaterialShell",
|
||||||
"rev": "d10ca3865137fd94db43e57ff10ee576aaf8f9ea",
|
"rev": "20aafebd87f0340c24b585180ab36339d6b154ad",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -211,6 +268,8 @@
|
|||||||
"inputs": {
|
"inputs": {
|
||||||
"antigravity": "antigravity",
|
"antigravity": "antigravity",
|
||||||
"dank-greeter": "dank-greeter",
|
"dank-greeter": "dank-greeter",
|
||||||
|
"dankcalendar": "dankcalendar",
|
||||||
|
"danksearch": "danksearch",
|
||||||
"dgop": "dgop",
|
"dgop": "dgop",
|
||||||
"dms": "dms",
|
"dms": "dms",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
@@ -262,11 +321,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1787197732,
|
"lastModified": 1787281392,
|
||||||
"narHash": "sha256-rxqzRhFq8Gpem967K+jGkw4kfm1ZN9bsNzaujG4Z6wc=",
|
"narHash": "sha256-WnGPcxoouwp2ZNQ2lBfVunY77AIFy6cdAfT4J5Vw6Fs=",
|
||||||
"owner": "0xc000022070",
|
"owner": "0xc000022070",
|
||||||
"repo": "zen-browser-flake",
|
"repo": "zen-browser-flake",
|
||||||
"rev": "dc0baff0a6041483be3816cf2e12ae053b5e458a",
|
"rev": "4ab199700226db9b91ab69fa2b78816ebe475358",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -31,6 +31,18 @@
|
|||||||
inputs.nixpkgs.follows = "nixpkgs";
|
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 - modern, lightweight, community-maintained browser
|
||||||
zen-browser = {
|
zen-browser = {
|
||||||
url = "github:0xc000022070/zen-browser-flake";
|
url = "github:0xc000022070/zen-browser-flake";
|
||||||
@@ -52,7 +64,7 @@
|
|||||||
|
|
||||||
# --- System Outputs (Configuration Definitions) ---
|
# --- System Outputs (Configuration Definitions) ---
|
||||||
# Maps host machines to target environments, architecture types, and user settings.
|
# 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 = {
|
nixosConfigurations = {
|
||||||
|
|
||||||
# 🖥️ DESKTOP HOST
|
# 🖥️ DESKTOP HOST
|
||||||
@@ -65,6 +77,7 @@
|
|||||||
./hosts/desktop/configuration.nix # Desktop environment / system package settings
|
./hosts/desktop/configuration.nix # Desktop environment / system package settings
|
||||||
inputs.sops-nix.nixosModules.sops # Import Sops module
|
inputs.sops-nix.nixosModules.sops # Import Sops module
|
||||||
inputs.dank-greeter.nixosModules.default # Import Dank Greeter 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.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@@ -75,6 +88,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./home.nix
|
./home.nix
|
||||||
./hosts/desktop/home.nix
|
./hosts/desktop/home.nix
|
||||||
|
inputs.danksearch.homeModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -91,6 +105,7 @@
|
|||||||
./hosts/laptop/hardware-configuration.nix
|
./hosts/laptop/hardware-configuration.nix
|
||||||
./hosts/laptop/configuration.nix
|
./hosts/laptop/configuration.nix
|
||||||
inputs.dank-greeter.nixosModules.default
|
inputs.dank-greeter.nixosModules.default
|
||||||
|
inputs.dankcalendar.nixosModules.default
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
@@ -101,6 +116,7 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./home.nix
|
./home.nix
|
||||||
./hosts/laptop/home.nix
|
./hosts/laptop/home.nix
|
||||||
|
inputs.danksearch.homeModules.default
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,7 @@
|
|||||||
programs.hyprland.enable = lib.mkForce false;
|
programs.hyprland.enable = lib.mkForce false;
|
||||||
programs.dms-shell.enable = lib.mkForce false;
|
programs.dms-shell.enable = lib.mkForce false;
|
||||||
programs.dms-greeter.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
|
# 2. Disable peripheral hardware services to reduce power consumption
|
||||||
services.pipewire.enable = lib.mkForce false;
|
services.pipewire.enable = lib.mkForce false;
|
||||||
|
|||||||
@@ -31,5 +31,13 @@
|
|||||||
compositor.name = "niri";
|
compositor.name = "niri";
|
||||||
configHome = "/home/kiskaadee";
|
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";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,4 +124,52 @@
|
|||||||
After = [ "graphical-session-pre.target" ];
|
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" ];
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user