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