2025-01-29 01:49:03 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
2024-12-14 02:24:56 +00:00
|
|
|
|
2025-01-29 01:49:03 +00:00
|
|
|
let
|
|
|
|
cfg = config.features.cli.notes;
|
|
|
|
in
|
2024-12-14 02:24:56 +00:00
|
|
|
{
|
2025-01-29 01:49:03 +00:00
|
|
|
options.features.cli.notes = {
|
|
|
|
enable = mkEnableOption "Enable notes";
|
|
|
|
|
|
|
|
directory = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home = {
|
|
|
|
packages = with pkgs; [ notes ];
|
2024-12-16 17:58:54 +00:00
|
|
|
|
2025-01-29 01:49:03 +00:00
|
|
|
sessionVariables = {
|
|
|
|
NOTES_DIRECTORY = "${cfg.directory}";
|
|
|
|
};
|
2024-12-16 17:58:54 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-12-14 02:24:56 +00:00
|
|
|
}
|