nixos/pkgs/pkgsets/emacs/nix-mode.nix

11 lines
190 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
mkIf (elem "emacs::nix-mode" config.machine.pkgs) {
programs.emacs.init.usePackage.nix-mode = {
enable = true;
mode = [ ''"\\.nix\\'"'' ];
};
}