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,
...
} : {
}: {
home.file = {
".config/hypr/hyprland.conf.d".source = ./hyprland.conf.d;
};
@ -14,7 +14,7 @@
wayland.windowManager.hyprland = {
enable = true;
extraConfig = builtins.readFile ./hyprland.conf;
plugins = [ hy3.packages.${pkgs.system}.hy3 ];
plugins = [inputs.hy3.packages.${pkgs.system}.hy3];
};
# bar is required

View file

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