nix-config/modules/home-manager/cli/todos.nix
Oliver Davies 24fc8e6845
All checks were successful
/ check (push) Successful in 1m21s
Create scripts to add to and edit daily todo files
2025-05-14 22:46:00 +01:00

36 lines
538 B
Nix

{
config,
lib,
pkgs,
...
}:
let
name = "todos";
cfg = config.cli.${name};
inherit (lib) mkOption types;
in
{
options.cli.${name} = {
enable = lib.mkEnableOption "Enable ${name}";
directory = mkOption {
default = "${config.xdg.userDirs.documents}/todos";
type = types.str;
};
};
config = lib.mkIf cfg.enable {
home = {
packages = with pkgs; [
todos-add
todos-edit
];
sessionVariables = {
TODOS_DIRECTORY = cfg.directory;
};
};
};
}