diff --git a/home/opdavies/t480.nix b/home/opdavies/t480.nix index 5035f03a..6ad0a468 100644 --- a/home/opdavies/t480.nix +++ b/home/opdavies/t480.nix @@ -15,7 +15,13 @@ }; node.enable = true; - notes.enable = true; + + notes = { + enable = true; + + directory = "${config.xdg.userDirs.documents}/wiki/notes"; + }; + ranger.enable = true; starship.enable = true; tmux.enable = true; diff --git a/modules/home-manager/cli/notes.nix b/modules/home-manager/cli/notes.nix index ce16e525..2b2d7b8e 100644 --- a/modules/home-manager/cli/notes.nix +++ b/modules/home-manager/cli/notes.nix @@ -11,7 +11,14 @@ let cfg = config.cli.notes; in { - options.cli.notes.enable = mkEnableOption "Enable notes"; + options.cli.notes = { + enable = mkEnableOption "Enable notes"; + + directory = mkOption { + default = "${config.xdg.userDirs.documents}/notes"; + type = types.str; + }; + }; config = mkIf cfg.enable { xdg = { @@ -23,7 +30,7 @@ in packages = with pkgs; [ notes ]; sessionVariables = { - NOTES_DIRECTORY = "${config.xdg.userDirs.documents}/wiki/notes"; + NOTES_DIRECTORY = cfg.directory; }; }; };