Create scripts to add to and edit daily todo files
All checks were successful
/ check (push) Successful in 1m21s
All checks were successful
/ check (push) Successful in 1m21s
This commit is contained in:
parent
3a8388b09f
commit
24fc8e6845
7 changed files with 66 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
./ranger.nix
|
||||
./scripts
|
||||
./starship.nix
|
||||
./todos.nix
|
||||
./tmux.nix
|
||||
./tmux-sessionizer.nix
|
||||
./zsh
|
||||
|
|
36
modules/home-manager/cli/todos.nix
Normal file
36
modules/home-manager/cli/todos.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue