From 4d34909b52b4aa06cc49469afd8f9a9309a413f0 Mon Sep 17 00:00:00 2001 From: John Ogle Date: Sat, 24 Aug 2024 09:54:17 -0700 Subject: [PATCH] Just pass inputs around --- flake.nix | 4 ++-- modules/window_managers/hyprland/default.nix | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 5a9ab61..98bb0ae 100644 --- a/flake.nix +++ b/flake.nix @@ -22,7 +22,7 @@ }; }; - outputs = { nixpkgs, home-manager, hyprland, hy3, ... }: + outputs = { nixpkgs, home-manager, hyprland, ... } @inputs: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; @@ -40,7 +40,7 @@ # Optionally use extraSpecialArgs # to pass through arguments to home.nix - extraSpecialArgs = { inherit hy3; inherit hyprland; }; + extraSpecialArgs = { inherit inputs; }; }; }; } diff --git a/modules/window_managers/hyprland/default.nix b/modules/window_managers/hyprland/default.nix index ff959cc..1548318 100644 --- a/modules/window_managers/hyprland/default.nix +++ b/modules/window_managers/hyprland/default.nix @@ -1,4 +1,4 @@ -{ hyprland, hy3, ... }: +{ inputs, ... }: { imports = [ @@ -7,8 +7,8 @@ wayland.windowManager.hyprland = { enable = true; - package = hyprland.packages.x86_64-linux.hyprland; - plugins = [ hy3.packages.x86_64-linux.hy3 ]; + package = inputs.hyprland.packages.x86_64-linux.hyprland; + plugins = [ inputs.hy3.packages.x86_64-linux.hy3 ]; settings = { "$mod" = "SUPER"; "$terminal" = "kitty";