From 45a0c0ccf5573acaf1f5be35464bf89cfaa85183 Mon Sep 17 00:00:00 2001 From: voidarc Date: Sat, 14 Nov 2026 16:14:23 +0000 Subject: [PATCH] updated hyprland override syntax --- flake.lock | 8 ++++---- modules/features/hyprland/default.nix | 19 +++++++------------ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/flake.lock b/flake.lock index cec76e0..5bc1136 100644 --- a/flake.lock +++ b/flake.lock @@ -28,11 +28,11 @@ ] }, "locked": { - "lastModified": 1794148728, - "narHash": "sha256-OodFhoTLSaf67hlHrfF24MGxJLYa6+Mnap0Phi5Wo7Y=", + "lastModified": 1794672526, + "narHash": "sha256-r6vKRLhiij+fNQdDY2XhmYH+KtqXDWTGEjUR28FFQ1c=", "ref": "refs/heads/main", - "rev": "f8d74267a42b39e31009f9d35e00ba30d6c34829", - "revCount": 5, + "rev": "24e78099cc14da3ee732719a6d5fdab150fa52c5", + "revCount": 7, "type": "git", "url": "https://git.voidarc.co.uk/adumh00man/hyprland-dendritic" }, diff --git a/modules/features/hyprland/default.nix b/modules/features/hyprland/default.nix index 0ed443a..e183751 100644 --- a/modules/features/hyprland/default.nix +++ b/modules/features/hyprland/default.nix @@ -1,7 +1,7 @@ {moduleWithSystem, ...}: { - # moduleWithSystem for Hyprland + # moduleWithSystem for Hyprland flake.nixosModules.hyprland = moduleWithSystem ({self', ...}: { - # Native wrapper for hyprland instead of environment.systemPackages + # Native wrapper for hyprland instead of environment.systemPackages programs.hyprland = { enable = true; package = self'.packages.hyprland; @@ -13,17 +13,12 @@ self', ... }: { - # Override input pacakge (using inputs' for right version) + # Override input pacakge (using inputs' for right version) packages.hyprland = inputs'.hyprland.packages.default.override { - # Change runtimePkgs to add custom foot version - runtimePkgs = with pkgs; - [ - waybar - ] - # ++ adds two sets together - ++ (with self'.packages; [ - foot - ]); + # Change runtimePkgs to add custom foot version + runtimePkgs = { + foot = self'.packages.foot; + }; }; }; }