Add emacs fonts + vterm
This commit is contained in:
@ -32,6 +32,9 @@ rec {
|
||||
i18n.inputMethod.enabled = "fcitx5";
|
||||
i18n.inputMethod.fcitx5.addons = with pkgs; [ fcitx5-gtk libsForQt5.fcitx5-qt fcitx5-chinese-addons fcitx5-configtool ];
|
||||
|
||||
# Make fonts installed through packages available to applications
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
home = {
|
||||
username = "christoph";
|
||||
homeDirectory = "/home/${home.username}";
|
||||
|
@ -35,12 +35,17 @@ in {
|
||||
config = mkIf cfg.enable {
|
||||
# What home packages should be enabled
|
||||
home.packages = with pkgs; [
|
||||
((emacsPackagesFor emacsPgtkNativeComp).emacsWithPackages (epkgs: [
|
||||
epkgs.vterm
|
||||
]))
|
||||
|
||||
binutils
|
||||
zstd
|
||||
(ripgrep.override { withPCRE2 = true; })
|
||||
fd
|
||||
# libgccjit
|
||||
sqlite
|
||||
# TODO: I probably need python too
|
||||
python310Packages.pygments
|
||||
inkscape
|
||||
graphviz
|
||||
@ -49,20 +54,21 @@ in {
|
||||
nixfmt
|
||||
shellcheck
|
||||
maim
|
||||
# TODO: Use LaTeX module instead
|
||||
texlive.combined.scheme-medium
|
||||
emacs-all-the-icons-fonts
|
||||
];
|
||||
|
||||
programs.emacs = {
|
||||
package = pkgs.emacsPgtkNativeComp;
|
||||
enable = true;
|
||||
};
|
||||
# Do this in packages
|
||||
# programs.emacs = {
|
||||
# package = pkgs.emacsPgtkNativeComp;
|
||||
# enable = true;
|
||||
# };
|
||||
|
||||
home.sessionPath = [
|
||||
"/home/${config.home.username}/.emacs/bin"
|
||||
"/home/${config.home.username}/.emacs.d/bin"
|
||||
];
|
||||
|
||||
# TODO:
|
||||
# fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
|
||||
|
||||
# We tell HomeManager where the config files belong
|
||||
home.file = {
|
||||
# With onChange you even could rebuild doom emacs when rebuilding HomeManager but I don't want this to become too slow
|
||||
@ -79,8 +85,8 @@ in {
|
||||
|
||||
# Because we write to the filesystem, this script has to be run after HomeManager's writeBoundary
|
||||
installDoomEmacs = hm.dag.entryAfter ["writeBoundary"] ''
|
||||
if [ ! -d "${config.home.homeDirectory}/.emacs" ]; then
|
||||
git clone --depth=1 --single-branch "https://github.com/doomemacs/doomemacs" "${config.home.homeDirectory}/.emacs"
|
||||
if [ ! -d "${config.home.homeDirectory}/.emacs.d" ]; then
|
||||
git clone --depth=1 --single-branch "https://github.com/doomemacs/doomemacs" "${config.home.homeDirectory}/.emacs.d"
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
Reference in New Issue
Block a user