{ config, systemConfig, lib, pkgs, ... }: { options.zaphyra.languages.nix.enable = lib.mkOption { type = lib.types.bool; default = systemConfig.modules.presets.graphical.enable; }; config = lib.mkIf config.zaphyra.languages.nix.enable { home.packages = with pkgs; [ deadnix nixfmt-rfc-style nixfmt-tree statix ]; programs = { helix.extraPackages = [ pkgs.nixd pkgs.nil ]; micro.lsp-servers.nix = { command = lib.getExe pkgs.nixd; options = { config = builtins.toJSON { formatting.command = [ (lib.getExe pkgs.nixfmt-rfc-style) ]; }; }; }; }; }; }