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