refactor(flake): Pass inputs as extraSpecialArgs

This commit is contained in:
GaspardCulis 2024-09-20 14:01:22 +00:00
parent 2d423aa521
commit 1525ee9499
2 changed files with 7 additions and 8 deletions

View file

@ -1,8 +1,8 @@
{ {
hy3, inputs,
pkgs, pkgs,
... ...
} : { }: {
home.file = { home.file = {
".config/hypr/hyprland.conf.d".source = ./hyprland.conf.d; ".config/hypr/hyprland.conf.d".source = ./hyprland.conf.d;
}; };
@ -10,11 +10,11 @@
home.packages = [ home.packages = [
pkgs.egl-wayland # For NVIDIA compatibility pkgs.egl-wayland # For NVIDIA compatibility
]; ];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
extraConfig = builtins.readFile ./hyprland.conf; extraConfig = builtins.readFile ./hyprland.conf;
plugins = [ hy3.packages.${pkgs.system}.hy3 ]; plugins = [inputs.hy3.packages.${pkgs.system}.hy3];
}; };
# bar is required # bar is required

View file

@ -28,9 +28,8 @@
nixpkgs, nixpkgs,
disko, disko,
home-manager, home-manager,
hy3,
... ...
}: let } @ inputs: let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
in { in {
@ -48,7 +47,7 @@
"gaspard" = home-manager.lib.homeManagerConfiguration { "gaspard" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = {inherit hy3;}; extraSpecialArgs = {inherit inputs;};
modules = [ modules = [
./users/gaspard.nix ./users/gaspard.nix
]; ];
@ -57,7 +56,7 @@
"culisg@im2ag" = home-manager.lib.homeManagerConfiguration { "culisg@im2ag" = home-manager.lib.homeManagerConfiguration {
inherit pkgs; inherit pkgs;
extraSpecialArgs = {inherit hy3;}; extraSpecialArgs = {inherit inputs;};
modules = [ modules = [
./users/culisg.nix ./users/culisg.nix
]; ];