mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-11 18:18:37 +02:00
32 lines
859 B
Nix
32 lines
859 B
Nix
{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"]
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|