summaryrefslogtreecommitdiff
path: root/modules/emacs/default.nix
blob: 6143cdee45817060a22f8bb1a858219ee051eb49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ pkgs, inputs, config, lib,  ...}: let
  inherit (lib) mkEnableOption mkIf;
in {
  options.santi-modules.emacs.enable = mkEnableOption "Enable emacs configuration";
  config = mkIf config.santi-modules.emacs.enable {
    nixpkgs.overlays = [ inputs.emacs-overlay.overlays.default ];
    environment.systemPackages = [
      pkgs.callPackage ./package.nix {}
    ];
    fonts.packages = with pkgs; [
      nerd-fonts.dejavu-sans-mono
    ];
  };
}