diff --git a/modules/applications/notewrapper.nix b/modules/applications/notewrapper.nix index 764504e..5cd7524 100644 --- a/modules/applications/notewrapper.nix +++ b/modules/applications/notewrapper.nix @@ -1,5 +1,5 @@ {inputs, ...}: { - flake.homeModules.notewrapper = {pkgs, ...}: { + flake.homeModules.laptop-notewrapper = {pkgs, ...}: { home.packages = [ inputs.notewrapper.packages.${pkgs.system}.default ]; @@ -8,7 +8,7 @@ force = true; text = '' { - "directory": ["~/Documents/Notes/", "~/test/"], + "directory": ["~/kdrive/Notes/"], "render": true, "jumpToEndOfFileOnLaunch": true, "editor": "neovim", @@ -16,7 +16,36 @@ "dateEntry": "# %Y %m %d %a", "newLineOnOpening": true, "backup": { - "enable": true, + "enable": false, + "directory": { + "~/Documents/Notes/": "~/kdrive/Notes/", + "~/test/": "~/backupTest/" + }, + "interval": "daily", + "rsyncArgs": ["-Lqah", "--update"] + } + } + ''; + }; + }; + flake.homeModules.desktop-notewrapper = {pkgs, ...}: { + home.packages = [ + inputs.notewrapper.packages.${pkgs.system}.default + ]; + home.file.".config/notewrapper/config.json" = { + enable = true; + force = true; + text = '' + { + "directory": ["~/hdd/kdrive/Notes/"], + "render": true, + "jumpToEndOfFileOnLaunch": true, + "editor": "neovim", + "journalRegex": ".*journal.*", + "dateEntry": "# %Y %m %d %a", + "newLineOnOpening": true, + "backup": { + "enable": false, "directory": { "~/Documents/Notes/": "~/kdrive/Notes/", "~/test/": "~/backupTest/" diff --git a/modules/hosts/desktop.nix b/modules/hosts/desktop.nix index be7b85e..7b4bc3f 100644 --- a/modules/hosts/desktop.nix +++ b/modules/hosts/desktop.nix @@ -71,7 +71,7 @@ mullvad neovim nix-git-cherry-picker-desktop - notewrapper + desktop-notewrapper oh-my-zsh ripgrep rofi diff --git a/modules/hosts/laptop.nix b/modules/hosts/laptop.nix index 989e0dd..275fae7 100644 --- a/modules/hosts/laptop.nix +++ b/modules/hosts/laptop.nix @@ -72,7 +72,7 @@ mullvad neovim nix-git-cherry-picker-laptop - notewrapper + laptop-notewrapper oh-my-zsh ripgrep rofi