1
0
Fork 0
nixos-config/home-manager/roles/zettelkasten.nix

20 lines
581 B
Nix
Raw Normal View History

2021-05-18 14:33:28 +00:00
{
2022-03-08 01:42:46 +00:00
config,
pkgs,
...
}: let
2022-06-06 20:35:01 +00:00
emanote_commit = (builtins.fromJSON (builtins.readFile ../../nix/sources.json)).emanote.rev;
emanote = builtins.getFlake "github:srid/emanote/${emanote_commit}";
2022-03-08 01:42:46 +00:00
in {
imports = [emanote.homeManagerModule];
2022-02-16 23:43:20 +00:00
services.emanote = {
enable = true;
# host = "127.0.0.1"; # default listen address is 127.0.0.1
# port = 7000; # default http port is 7000
notes = [
2022-02-18 11:38:18 +00:00
"${config.home.homeDirectory}/git/notes" # add as many layers as you like
2022-02-16 23:43:20 +00:00
];
2022-05-31 22:26:26 +00:00
package = emanote.packages."${builtins.currentSystem}".default;
2020-07-01 23:20:18 +00:00
};
}