diff --git a/modules/applications/notewrapper.nix b/modules/applications/notewrapper.nix new file mode 100644 index 0000000..0bb4cf0 --- /dev/null +++ b/modules/applications/notewrapper.nix @@ -0,0 +1,31 @@ +{inputs, ... }: { + flake.homeModules.notewrapper = {pkgs, ...}: { + home.packages = [ + inputs.notewrapper.packages.${pkgs.system}.default + ]; + home.file.".config/notewrapper/config.json" = { + enable = true; + force = true; + text = '' +{ + "directory": ["~/Documents/Notes/", "~/test/"], + "render": true, + "jumpToEndOfFileOnLaunch": true, + "editor": "neovim", + "journalRegex": ".*journal.*", + "dateEntry": "# %Y %m %d %a", + "newLineOnOpening": true, + "backup": { + "enable": true, + "directory": { + "~/Documents/Notes/": "~/kdrive/Notes/", + "~/test/": "~/backupTest/" + }, + "interval": "daily", + "rsyncArgs": ["-Lqah", "--update"] + } +} + ''; + }; + }; +} diff --git a/modules/hosts/laptop.nix b/modules/hosts/laptop.nix index 923d4f5..9536962 100644 --- a/modules/hosts/laptop.nix +++ b/modules/hosts/laptop.nix @@ -63,6 +63,7 @@ librewolf mullvad neovim + notewrapper oh-my-zsh ripgrep rofi diff --git a/modules/utilities/otherUtils.nix b/modules/utilities/otherUtils.nix index 575afaf..d5097ff 100644 --- a/modules/utilities/otherUtils.nix +++ b/modules/utilities/otherUtils.nix @@ -24,7 +24,6 @@ self.packages.${pkgs.system}.custom-syllabes pkgs-unstable.bitwarden-desktop fluffychat # matrix client - inputs.notewrapper.packages.${pkgs.system}.default ]; }; }