2019-11-17 23:13:50 +01:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
mkIf (elem "emacs::nix-mode" config.machine.pkgs) {
|
|
|
|
programs.emacs.init.usePackage.nix-mode = {
|
|
|
|
enable = true;
|
|
|
|
mode = [ ''"\\.nix\\'"'' ];
|
2021-11-07 16:05:02 +01:00
|
|
|
config = ''(setq nix-nixfmt-bin "nixfmt -w 150")'';
|
2019-11-17 23:13:50 +01:00
|
|
|
};
|
|
|
|
}
|