diff --git a/flake.lock b/flake.lock index 72bae96..39d3832 100644 --- a/flake.lock +++ b/flake.lock @@ -149,7 +149,15 @@ }, "root": { "inputs": { - "hyprland": "hyprland" + "hyprland": "hyprland", + "nixpkgs": [ + "hyprland", + "nixpkgs" + ], + "systems": [ + "hyprland", + "systems" + ] } }, "systems": { diff --git a/flake.nix b/flake.nix index ed5846e..1cfe757 100644 --- a/flake.nix +++ b/flake.nix @@ -1,17 +1,21 @@ { description = "Hyprland Plugins (Hycov)"; - inputs.hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; + inputs = { + hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1"; + nixpkgs.follows = "hyprland/nixpkgs"; + systems.follows = "hyprland/systems"; + }; outputs = { self , hyprland + , nixpkgs + , systems }: let - inherit (hyprland.inputs) nixpkgs; inherit (nixpkgs) lib; - systems = lib.attrNames hyprland.packages; - withPkgsFor = fn: lib.genAttrs systems (system: + withPkgsFor = fn: lib.genAttrs (import systems) (system: let pkgs = import nixpkgs { localSystem.system = system;