Remove the features directory

This commit is contained in:
Oliver Davies 2025-03-06 23:46:37 +00:00
parent 6585022138
commit 0f31678c52
57 changed files with 6 additions and 8 deletions

View file

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