updated hyprland override syntax

This commit is contained in:
2026-11-14 16:14:23 +00:00
parent 362d9e744a
commit 45a0c0ccf5
2 changed files with 11 additions and 16 deletions

View File

@@ -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;
};
};
};
}