From 2220d73688ae3c3c9071f984d2ddbd9fa79773b6 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 11 Jan 2025 21:15:24 -0800 Subject: [PATCH] feat: Move wezterm-git input to overlay So I don't have to reference the input directly. --- modules/home/programs/wezterm/default.nix | 3 +-- modules/home/wayland/hyprland/default.nix | 4 +--- overlays/wezterm/default.nix | 3 +++ 3 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 overlays/wezterm/default.nix diff --git a/modules/home/programs/wezterm/default.nix b/modules/home/programs/wezterm/default.nix index 392f8a2..d68279d 100644 --- a/modules/home/programs/wezterm/default.nix +++ b/modules/home/programs/wezterm/default.nix @@ -26,8 +26,7 @@ in { package = if isNotNixOS then pkgs.emptyDirectory - # TODO: make this an overlay. - else inputs.wezterm.packages."${pkgs.system}".default; + else pkgs.wezterm; # TODO: create `local config` & return it seperately, so other modules can # insert config in the middle diff --git a/modules/home/wayland/hyprland/default.nix b/modules/home/wayland/hyprland/default.nix index 88023b8..18eef03 100644 --- a/modules/home/wayland/hyprland/default.nix +++ b/modules/home/wayland/hyprland/default.nix @@ -2,7 +2,6 @@ lib, config, inputs, - system, pkgs, ... }: let @@ -99,9 +98,8 @@ in { in { monitor = lib.attrValues cfg.monitors; - # TODO: Use overlay once it's made. # TODO: Set this in a default apps module. - "$terminal" = lib.getExe inputs.wezterm.packages."${system}".default; + "$terminal" = lib.getExe pkgs.wezterm; "$launcher" = "${lib.getExe pkgs.wofi} --show drun"; # TODO: Set this in a default apps module. "$browser" = "${lib.getExe pkgs.floorp}"; diff --git a/overlays/wezterm/default.nix b/overlays/wezterm/default.nix new file mode 100644 index 0000000..ebea314 --- /dev/null +++ b/overlays/wezterm/default.nix @@ -0,0 +1,3 @@ +{inputs, ...}: final: prev: { + wezterm = inputs.wezterm.packages."${prev.system}".default; +}