Move notes configuration

This commit is contained in:
Oliver Davies 2025-04-05 10:11:07 +01:00
parent 90aaabeed6
commit 111c336abc
8 changed files with 37 additions and 48 deletions

View file

@ -1,32 +0,0 @@
{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.homeManagerModules.notes;
in
{
options.homeManagerModules.notes = {
enable = mkEnableOption "Enable notes";
directory = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable {
home = {
packages = with pkgs; [ notes ];
sessionVariables = {
NOTES_DIRECTORY = "${cfg.directory}";
};
};
};
}