mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-01 04:57:55 +00:00
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
|
# Makes you infinitesimally productive.
|
||
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
let
|
||
|
userCfg = config.users.foo-dogsquared;
|
||
|
cfg = userCfg.services.desktop;
|
||
|
in
|
||
|
{
|
||
|
options.users.foo-dogsquared.services.desktop.enable = lib.mkEnableOption "a set of usual desktop productivity services";
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
# Self-inflicted telemetry.
|
||
|
services.activitywatch = {
|
||
|
enable = true;
|
||
|
watchers = {
|
||
|
aw-watcher-afk.package = pkgs.activitywatch;
|
||
|
aw-watcher-window.package = pkgs.activitywatch;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# Clean up your mess
|
||
|
services.bleachbit = {
|
||
|
enable = true;
|
||
|
cleaners = [
|
||
|
"winetricks.temporary_files"
|
||
|
"wine.tmp"
|
||
|
"discord.history"
|
||
|
"google_earth.temporary_files"
|
||
|
"google_toolbar.search_history"
|
||
|
"thumbnails.cache"
|
||
|
"zoom.logs"
|
||
|
"vim.history"
|
||
|
];
|
||
|
withChatCleanup = true;
|
||
|
withBrowserCleanup = true;
|
||
|
};
|
||
|
|
||
|
# My preferred file indexing service.
|
||
|
services.recoll = {
|
||
|
enable = true;
|
||
|
startAt = "daily";
|
||
|
settings = {
|
||
|
topdirs = "~/Downloads ~/Documents ~/library";
|
||
|
"skippedNames+" = "node_modules";
|
||
|
|
||
|
"~/library/projects" = {
|
||
|
"skippedNames+" = ".editorconfig .gitignore result flake.lock go.sum";
|
||
|
};
|
||
|
|
||
|
"~/library/projects/software" = {
|
||
|
"skippedNames+" = "target result";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|