diff --git a/modules/universal/env/home-manager/default.nix b/modules/universal/env/home-manager/default.nix index 1af6fd667..adc458199 100644 --- a/modules/universal/env/home-manager/default.nix +++ b/modules/universal/env/home-manager/default.nix @@ -24,6 +24,7 @@ in ./kitty.nix ./librewolf.nix ./mpv.nix + ./nb.nix ./neovim.nix ./vlc.nix ./zsh.nix @@ -160,15 +161,6 @@ in home.file."Videos/servo-incomplete".source = config.lib.file.mkOutOfStoreSymlink "/mnt/servo-media/incomplete"; home.file."Music/servo".source = config.lib.file.mkOutOfStoreSymlink "/mnt/servo-media/Music"; - # nb markdown/personal knowledge manager - home.file.".nb/knowledge".source = config.lib.file.mkOutOfStoreSymlink "/home/colin/dev/knowledge"; - home.file.".nb/.current".text = "knowledge"; - home.file.".nbrc".text = '' - # manage with `nb settings` - export NB_AUTO_SYNC=0 - ''; - - # aerc TUI mail client xdg.configFile."aerc/accounts.conf".source = config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.aerc_accounts.path; diff --git a/modules/universal/env/home-manager/nb.nix b/modules/universal/env/home-manager/nb.nix new file mode 100644 index 000000000..c989d10f3 --- /dev/null +++ b/modules/universal/env/home-manager/nb.nix @@ -0,0 +1,22 @@ +# nb is a CLI-drive Personal Knowledge Manager +# - +# +# it's pretty opinionated: +# - autocommits (to git) excessively (disable-able) +# - inserts its own index files to give deterministic names to files +# +# it offers a primitive web-server +# and it offers some CLI query tools + +{ lib, ... }: +{ + home-manager.users.colin = { config, ... }: { + # nb markdown/personal knowledge manager + home.file.".nb/knowledge".source = config.lib.file.mkOutOfStoreSymlink "/home/colin/dev/knowledge"; + home.file.".nb/.current".text = "knowledge"; + home.file.".nbrc".text = '' + # manage with `nb settings` + export NB_AUTO_SYNC=0 + ''; + }; +}