Move notes into a mixin, standardise notes path

This commit is contained in:
Oliver Davies 2025-04-10 22:22:07 +01:00
parent 2f5a6de425
commit f6177a3be0
4 changed files with 2 additions and 20 deletions

18
modules/mixins/notes.nix Normal file
View file

@ -0,0 +1,18 @@
{
home-manager.users.opdavies =
{ config, pkgs, ... }:
{
xdg = {
enable = true;
userDirs.enable = true;
};
home = {
packages = with pkgs; [ notes ];
sessionVariables = {
NOTES_DIRECTORY = "${config.xdg.userDirs.documents}/wiki/notes";
};
};
};
}