{ config, lib, pkgs, ... }: let cfg = config.szpont.hm.editors.helix; in { options.szpont.hm.editors.helix.enable = lib.mkEnableOption "enables helix editor"; config = lib.mkIf cfg.enable { programs.helix = { enable = true; package = pkgs.helix; }; }; }