Create scripts to add to and edit daily todo files
All checks were successful
/ check (push) Successful in 1m21s

This commit is contained in:
Oliver Davies 2025-05-14 22:46:00 +01:00
parent 3a8388b09f
commit 24fc8e6845
7 changed files with 66 additions and 0 deletions

View file

@ -11,6 +11,7 @@
./ranger.nix
./scripts
./starship.nix
./todos.nix
./tmux.nix
./tmux-sessionizer.nix
./zsh

View file

@ -0,0 +1,36 @@
{
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;
};
};
};
}