dotfiles/nix/modules/home-manager/features/cli/notes.nix

33 lines
413 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.features.cli.notes;
in
{
options.features.cli.notes = {
enable = mkEnableOption "Enable notes";
directory = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [ notes ];
sessionVariables = {
NOTES_DIRECTORY = "${cfg.directory}";
};
};
};
}