34 lines
703 B
Nix
34 lines
703 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
toEnvFile = attrs: lib.strings.concatLines (lib.attrsets.mapAttrsToList (key: value: "${key}=${builtins.toString value}") attrs);
|
|
in {
|
|
home.packages = [
|
|
pkgs.nb
|
|
pkgs.nmap
|
|
pkgs.w3m
|
|
pkgs.joshuto
|
|
pkgs.pandoc
|
|
];
|
|
|
|
home.sessionVariables = {
|
|
NBRC_PATH = "${config.xdg.configHome}/nb/nbrc";
|
|
};
|
|
|
|
xdg.configFile."nb/nbrc".text = toEnvFile {
|
|
NB_DIR = "${config.xdg.dataHome}/nb";
|
|
NB_ENCRYPTION_TOOL = "gpg";
|
|
# NB_SYNTAX_THEME="gruvbox-dark";
|
|
NB_COLOR_PRIMARY = 3;
|
|
NB_COLOR_SECONDARY = 5;
|
|
|
|
NB_ACE_ENABLED = "1";
|
|
|
|
NB_IMAGE_TOOL = "${pkgs.timg}/bin/timg";
|
|
NB_MARKDOWN_TOOL = "${pkgs.mdcat}/bin/mdcat";
|
|
};
|
|
}
|