home-manager: split nb
out of default.nix
This commit is contained in:
10
modules/universal/env/home-manager/default.nix
vendored
10
modules/universal/env/home-manager/default.nix
vendored
@@ -24,6 +24,7 @@ in
|
|||||||
./kitty.nix
|
./kitty.nix
|
||||||
./librewolf.nix
|
./librewolf.nix
|
||||||
./mpv.nix
|
./mpv.nix
|
||||||
|
./nb.nix
|
||||||
./neovim.nix
|
./neovim.nix
|
||||||
./vlc.nix
|
./vlc.nix
|
||||||
./zsh.nix
|
./zsh.nix
|
||||||
@@ -160,15 +161,6 @@ in
|
|||||||
home.file."Videos/servo-incomplete".source = config.lib.file.mkOutOfStoreSymlink "/mnt/servo-media/incomplete";
|
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";
|
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
|
# aerc TUI mail client
|
||||||
xdg.configFile."aerc/accounts.conf".source =
|
xdg.configFile."aerc/accounts.conf".source =
|
||||||
config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.aerc_accounts.path;
|
config.lib.file.mkOutOfStoreSymlink sysconfig.sops.secrets.aerc_accounts.path;
|
||||||
|
22
modules/universal/env/home-manager/nb.nix
vendored
Normal file
22
modules/universal/env/home-manager/nb.nix
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# nb is a CLI-drive Personal Knowledge Manager
|
||||||
|
# - <https://xwmx.github.io/nb/>
|
||||||
|
#
|
||||||
|
# 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
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user