home: emacs: move package dependencies in homeconf

This commit is contained in:
Antoine Martin 2021-04-19 16:07:38 +02:00
parent 52290a8f8d
commit 9684592fbd
2 changed files with 12 additions and 7 deletions

View file

@ -3,22 +3,17 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
alacritty alacritty
discord discord
emacsPgtkGcc
feh feh
firefox firefox
pavucontrol pavucontrol
slack slack
spotify spotify
sqlite # needed for org-roam
zathura zathura
]; ];
fonts.fonts = with pkgs; [
input-fonts
emacs-all-the-icons-fonts
];
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
programs.nm-applet.enable = true; programs.nm-applet.enable = true;
# NOTE: needed for home emacs configuration
nixpkgs.config.input-fonts.acceptLicense = true; nixpkgs.config.input-fonts.acceptLicense = true;
} }

View file

@ -5,6 +5,16 @@
}; };
config = lib.mkIf config.my.home.emacs.enable { config = lib.mkIf config.my.home.emacs.enable {
home.packages = with pkgs; [
sqlite # needed by org-roam
# fonts used by my config
input-fonts
emacs-all-the-icons-fonts
];
# make sure above fonts are discoverable
fonts.fontconfig.enable = true;
services.emacs = { services.emacs = {
enable = true; enable = true;
# generate emacsclient desktop file # generate emacsclient desktop file