Add emacs-overlay

This commit is contained in:
joachimschmidt557 2021-10-30 13:26:52 +02:00
parent 7842f749db
commit d5d1dddc4e
No known key found for this signature in database
GPG key ID: E0B575BE2884ACC5
3 changed files with 25 additions and 9 deletions

View file

@ -2,6 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ emacs-overlay }:
{ config, pkgs, ... }:
{
@ -131,7 +132,7 @@
mako
# GUI software
emacs
emacsPgtk
firefox
thunderbird
mpv
@ -163,18 +164,14 @@
programs.steam.enable = true;
nixpkgs.config.packageOverrides = pkgs: rec {
# Override emacs
emacs = pkgs.emacs.override {
withGTK3 = true;
withGTK2 = false;
};
# Override firefox
firefox = pkgs.firefox.override {
forceWayland = true;
};
};
nixpkgs.overlays = [ emacs-overlay.overlay ];
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 8080 ];
networking.firewall.allowedUDPPorts = [ 8080 ];