{ config, lib, pkgs, ... }: with lib; let cfg = config.nixfiles.modules.wayland; in { options.nixfiles.modules.wayland.enable = mkEnableOption "Wayland"; config = mkIf cfg.enable { nixfiles.modules.foot.enable = true; hm.home = { packages = with pkgs; [ grim slurp wl-clipboard wlr-randr ]; sessionVariables.NIXOS_OZONE_WL = 1; }; }; }