Just pass inputs around

This commit is contained in:
2024-08-24 09:54:17 -07:00
parent 4dfa85d7f5
commit 4d34909b52
2 changed files with 5 additions and 5 deletions

View File

@@ -22,7 +22,7 @@
}; };
}; };
outputs = { nixpkgs, home-manager, hyprland, hy3, ... }: outputs = { nixpkgs, home-manager, hyprland, ... } @inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@@ -40,7 +40,7 @@
# Optionally use extraSpecialArgs # Optionally use extraSpecialArgs
# to pass through arguments to home.nix # to pass through arguments to home.nix
extraSpecialArgs = { inherit hy3; inherit hyprland; }; extraSpecialArgs = { inherit inputs; };
}; };
}; };
} }

View File

@@ -1,4 +1,4 @@
{ hyprland, hy3, ... }: { inputs, ... }:
{ {
imports = [ imports = [
@@ -7,8 +7,8 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
package = hyprland.packages.x86_64-linux.hyprland; package = inputs.hyprland.packages.x86_64-linux.hyprland;
plugins = [ hy3.packages.x86_64-linux.hy3 ]; plugins = [ inputs.hy3.packages.x86_64-linux.hy3 ];
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
"$terminal" = "kitty"; "$terminal" = "kitty";