hyprwm/hyprland-plugins

error: attribute 'lib' missing when installing via flakes

Closed this issue · 2 comments

# flake.nix
{
  description = "Your new nix config";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
    home-manager.url = "github:nix-community/home-manager/release-24.11";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
    hyprland.url = "github:hyprwm/Hyprland";
    hyprland-plugins = {
      url = "github:hyprwm/hyprland-plugins";
      inputs.nixpkgs.follows = "hyprland";
    };
  };

  outputs = {
    self,
    nixpkgs,
    home-manager,
    ...
  } @ inputs: let
    inherit (self) outputs;
  in {
    nixosConfigurations = {
      interstice = nixpkgs.lib.nixosSystem {
        specialArgs = {inherit inputs outputs;};
        modules = [./nixos/interstice/configuration.nix];
      };
    };

    homeConfigurations = {
      "user@interstice" = home-manager.lib.homeManagerConfiguration {
        pkgs = nixpkgs.legacyPackages.x86_64-linux; # Home-manager requires 'pkgs' instance
        extraSpecialArgs = {inherit inputs outputs;};
        modules = [
            ./home/home.nix
          ];
      };
    };
  };
}
# hyprland.nix
{inputs, pkgs, colors, stripHexPrefix, lib, ...}: {
  systemd.user.targets.hyprland-session.Unit.Wants = [ "xdg-desktop-autostart.target" ];
  wayland.windowManager.hyprland = with colors; {
    enable = true;
    package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;
    systemd.enable = true;
    plugins = [ inputs.hyprland-plugins.packages.${pkgs.system}.borders-plus-plus ];
    extraConfig = ''
		...conifg
    '';
  };
}

Home manager version - 24.11-pre

Error trace -

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/pkgs/build-support/trivial-builders/default.nix:59:17:
           58|         enableParallelBuilding = true;
           59|         inherit buildCommand name;
             |                 ^
           60|         passAsFile = [ "buildCommand" ]

       … while evaluating the option `home.activation.checkFilesChanged.data':

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix':

       … while evaluating the option `home.file."/home/nam/.config/hypr/hyprland.conf".source':

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix':

       … while evaluating the option `home.file."/home/nam/.config/hypr/hyprland.conf".text':

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/misc/xdg.nix':

       … while evaluating the option `xdg.configFile."hypr/hyprland.conf".text':

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/services/window-managers/hyprland.nix':

       … while evaluating the option `wayland.windowManager.hyprland.plugins':

       … while evaluating definitions from `/nix/store/sl6qazf3nz3gn310sy4r4zbbqypj9fyr-source/home/home.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'lib' missing
       at /nix/store/07sml9kgjxms3iwixyiwlw4j3pwnabzd-source/flake.nix:17:23:
           16|   }: let
           17|     inherit (nixpkgs) lib;
             |                       ^
           18|     eachSystem = lib.genAttrs (import systems);

with --show-trace

error:
       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/pkgs/build-support/trivial-builders/default.nix:59:17:
           58|         enableParallelBuilding = true;
           59|         inherit buildCommand name;
             |                 ^
           60|         passAsFile = [ "buildCommand" ]

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:44:19:
           43|       value = commonAttrs // {
           44|         outPath = builtins.getAttr outputName strict;
             |                   ^
           45|         drvPath = strict.drvPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

       … while evaluating derivation 'activation-script'
         whose name attribute is located at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'text' of derivation 'activation-script'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/pkgs/build-support/trivial-builders/default.nix:102:17:
          101|       ({
          102|         inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                 ^
          103|         passAsFile = [ "text" ]

       … while calling the 'concatStringsSep' builtin
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/home-environment.nix:674:13:
          673|           if sortedCommands ? result then
          674|             concatStringsSep "\n" (map mkCmd sortedCommands.result)
             |             ^
          675|           else

       … while calling 'mkCmd'
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/home-environment.nix:667:17:
          666|       let
          667|         mkCmd = res: ''
             |                 ^
          668|             _iNote "Activating %s" "${res.name}"

       … while evaluating the attribute 'data'
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/lib/dag.nix:89:43:
           88|     in if sorted ? result then {
           89|       result = map (v: { inherit (v) name data; }) sorted.result;
             |                                           ^
           90|     } else

       … while evaluating the attribute 'data'
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/lib/dag.nix:83:9:
           82|         name = n;
           83|         data = v.data;
             |         ^
           84|         after = v.after ++ dagBefore dag n;

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/lib/dag.nix:83:16:
           82|         name = n;
           83|         data = v.data;
             |                ^
           84|         after = v.after ++ dagBefore dag n;

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1204:18:
         1203|         mapAttrs
         1204|           (name: value:
             |                  ^
         1205|             if isAttrs value && cond value

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1207:18:
         1206|             then recurse (path ++ [ name ]) value
         1207|             else f (path ++ [ name ]) value);
             |                  ^
         1208|     in

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:254:72:
          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `home.activation.checkFilesChanged.data':

       … while evaluating the attribute 'mergedValue'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:851:5:
          850|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          851|     mergedValue =
             |     ^
          852|       if isDefined then

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:852:7:
          851|     mergedValue =
          852|       if isDefined then
             |       ^
          853|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal

       … while evaluating the attribute 'values'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:845:9:
          844|       in {
          845|         values = defs''';
             |         ^
          846|         inherit (defs'') highestPrio;

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:841:11:
          840|           # Avoid sorting if we don't have to.
          841|           if any (def: def.value._type or "" == "order") defs''.values
             |           ^
          842|           then sortProperties defs''.values

       … while calling the 'any' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:841:14:
          840|           # Avoid sorting if we don't have to.
          841|           if any (def: def.value._type or "" == "order") defs''.values
             |              ^
          842|           then sortProperties defs''.values

       … while evaluating the attribute 'values'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:944:7:
          943|     in {
          944|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |       ^
          945|       inherit highestPrio;

       … while calling the 'concatMap' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:944:16:
          943|     in {
          944|       values = concatMap (def: if getPrio def == highestPrio then [(strip def)] else []) defs;
             |                ^
          945|       inherit highestPrio;

       … while calling the 'concatMap' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:831:17:
          830|         # Process mkMerge and mkIf properties.
          831|         defs' = concatMap (m:
             |                 ^
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:831:28:
          830|         # Process mkMerge and mkIf properties.
          831|         defs' = concatMap (m:
             |                            ^
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))

       … while calling the 'map' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:832:11:
          831|         defs' = concatMap (m:
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |           ^
          833|         ) defs;

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix':

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:832:128:
          831|         defs' = concatMap (m:
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          833|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:903:25:
          902|   */
          903|   dischargeProperties = def:
             |                         ^
          904|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:904:5:
          903|   dischargeProperties = def:
          904|     if def._type or "" == "merge" then
             |     ^
          905|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:614:53:
          613|                 (n: value:
          614|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          615|                 )

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:256:12:
          255|         declare -A changedFiles
          256|       '' + concatMapStrings (v:
             |            ^
          257|         let

       … while calling 'concatMapStrings'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:95:25:
           94|   */
           95|   concatMapStrings = f: list: concatStrings (map f list);
             |                         ^
           96|

       … while calling the 'concatStringsSep' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:95:31:
           94|   */
           95|   concatMapStrings = f: list: concatStrings (map f list);
             |                               ^
           96|

       … while calling anonymous lambda
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:256:30:
          255|         declare -A changedFiles
          256|       '' + concatMapStrings (v:
             |                              ^
          257|         let

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:258:23:
          257|         let
          258|           sourceArg = escapeShellArg (sourceStorePath v);
             |                       ^
          259|           targetArg = escapeShellArg v.target;

       … while calling 'escapeShellArg'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:1056:20:
         1055|   */
         1056|   escapeShellArg = arg:
             |                    ^
         1057|     let

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:1060:7:
         1059|     in
         1060|       if match "[[:alnum:],._+:@%/-]+" string == null
             |       ^
         1061|       then "'${replaceStrings ["'"] ["'\\''"] string}'"

       … while calling the 'match' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:1060:10:
         1059|     in
         1060|       if match "[[:alnum:],._+:@%/-]+" string == null
             |          ^
         1061|       then "'${replaceStrings ["'"] ["'\\''"] string}'"

       … while evaluating the second argument passed to builtins.match

       … while calling the 'toString' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:1058:16:
         1057|     let
         1058|       string = toString arg;
             |                ^
         1059|     in

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:258:39:
          257|         let
          258|           sourceArg = escapeShellArg (sourceStorePath v);
             |                                       ^
          259|           targetArg = escapeShellArg v.target;

       … while calling 'sourceStorePath'
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:15:21:
           14|
           15|   sourceStorePath = file:
             |                     ^
           16|     let

       … while evaluating a branch condition
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:20:7:
           19|     in
           20|       if builtins.hasContext sourcePath
             |       ^
           21|       then file.source

       … while calling the 'hasContext' builtin
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:20:10:
           19|     in
           20|       if builtins.hasContext sourcePath
             |          ^
           21|       then file.source

       … while evaluating the argument passed to builtins.hasContext

       … while calling the 'toString' builtin
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:17:20:
           16|     let
           17|       sourcePath = toString file.source;
             |                    ^
           18|       sourceName = config.lib.strings.storeFileName (baseNameOf sourcePath);

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/files.nix:17:29:
           16|     let
           17|       sourcePath = toString file.source;
             |                             ^
           18|       sourceName = config.lib.strings.storeFileName (baseNameOf sourcePath);

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1204:18:
         1203|         mapAttrs
         1204|           (name: value:
             |                  ^
         1205|             if isAttrs value && cond value

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1207:18:
         1206|             then recurse (path ++ [ name ]) value
         1207|             else f (path ++ [ name ]) value);
             |                  ^
         1208|     in

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:254:72:
          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `home.file."/home/nam/.config/hypr/hyprland.conf".source':

       (13 duplicate frames omitted)

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:907:7:
          906|     else if def._type or "" == "if" then
          907|       if isBool def.condition then
             |       ^
          908|         if def.condition then

       … while calling the 'isBool' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:907:10:
          906|     else if def._type or "" == "if" then
          907|       if isBool def.condition then
             |          ^
          908|         if def.condition then

       … while evaluating the attribute 'condition'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:1008:15:
         1007|     { _type = "if";
         1008|       inherit condition content;
             |               ^
         1009|     };

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/lib/file-type.nix:113:24:
          112|         target = mkDefault name;
          113|         source = mkIf (config.text != null) (mkDefault (pkgs.writeTextFile {
             |                        ^
          114|           inherit (config) text;

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1204:18:
         1203|         mapAttrs
         1204|           (name: value:
             |                  ^
         1205|             if isAttrs value && cond value

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1207:18:
         1206|             then recurse (path ++ [ name ]) value
         1207|             else f (path ++ [ name ]) value);
             |                  ^
         1208|     in

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:254:72:
          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `home.file."/home/nam/.config/hypr/hyprland.conf".text':

       (10 duplicate frames omitted)

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/misc/xdg.nix':

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:832:128:
          831|         defs' = concatMap (m:
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          833|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:903:25:
          902|   */
          903|   dischargeProperties = def:
             |                         ^
          904|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:904:5:
          903|   dischargeProperties = def:
          904|     if def._type or "" == "merge" then
             |     ^
          905|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:614:53:
          613|                 (n: value:
          614|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          615|                 )

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:614:53:
          613|                 (n: value:
          614|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          615|                 )

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1204:18:
         1203|         mapAttrs
         1204|           (name: value:
             |                  ^
         1205|             if isAttrs value && cond value

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1207:18:
         1206|             then recurse (path ++ [ name ]) value
         1207|             else f (path ++ [ name ]) value);
             |                  ^
         1208|     in

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:254:72:
          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `xdg.configFile."hypr/hyprland.conf".text':

       (10 duplicate frames omitted)

       … while evaluating definitions from `/nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/services/window-managers/hyprland.nix':

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:832:128:
          831|         defs' = concatMap (m:
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          833|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:903:25:
          902|   */
          903|   dischargeProperties = def:
             |                         ^
          904|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:904:5:
          903|   dischargeProperties = def:
          904|     if def._type or "" == "merge" then
             |     ^
          905|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:614:53:
          613|                 (n: value:
          614|                   [{ inherit (module) file; inherit value; }]
             |                                                     ^
          615|                 )

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/services/window-managers/hyprland.nix:247:11:
          246|       text = lib.optionalString cfg.systemd.enable systemdActivation
          247|         + lib.optionalString (cfg.plugins != [ ])
             |           ^
          248|         (pluginsToHyprconf cfg.plugins)

       … while calling 'optionalString'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:678:5:
          677|     cond:
          678|     string: if cond then string else "";
             |     ^
          679|

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/strings.nix:678:13:
          677|     cond:
          678|     string: if cond then string else "";
             |             ^
          679|

       … from call site
         at /nix/store/mdzxa36ixdm9g8yli9h73izv3kpj7xjq-source/modules/services/window-managers/hyprland.nix:247:31:
          246|       text = lib.optionalString cfg.systemd.enable systemdActivation
          247|         + lib.optionalString (cfg.plugins != [ ])
             |                               ^
          248|         (pluginsToHyprconf cfg.plugins)

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1204:18:
         1203|         mapAttrs
         1204|           (name: value:
             |                  ^
         1205|             if isAttrs value && cond value

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/attrsets.nix:1207:18:
         1206|             then recurse (path ++ [ name ]) value
         1207|             else f (path ++ [ name ]) value);
             |                  ^
         1208|     in

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:254:72:
          253|           # For definitions that have an associated option
          254|           declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
             |                                                                        ^
          255|

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `wayland.windowManager.hyprland.plugins':

       … while evaluating the attribute 'mergedValue'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:851:5:
          850|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          851|     mergedValue =
             |     ^
          852|       if isDefined then

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:853:59:
          852|       if isDefined then
          853|         if all (def: type.check def.value) defsFinal then type.merge loc defsFinal
             |                                                           ^
          854|         else let allInvalid = filter (def: ! type.check def.value) defsFinal;

       … while calling 'merge'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:545:20:
          544|       check = isList;
          545|       merge = loc: defs:
             |                    ^
          546|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:

       … while calling the 'map' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:546:9:
          545|       merge = loc: defs:
          546|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |         ^
          547|           imap1 (m: def':

       … while calling the 'filter' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:546:27:
          545|       merge = loc: defs:
          546|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |                           ^
          547|           imap1 (m: def':

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:546:35:
          545|       merge = loc: defs:
          546|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |                                   ^
          547|           imap1 (m: def':

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:546:38:
          545|       merge = loc: defs:
          546|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
             |                                      ^
          547|           imap1 (m: def':

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/lists.nix:334:29:
          333|   */
          334|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                             ^
          335|

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/lists.nix:334:32:
          333|   */
          334|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                                ^
          335|

       … while calling anonymous lambda
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:547:21:
          546|         map (x: x.value) (filter (x: x ? value) (concatLists (imap1 (n: def:
          547|           imap1 (m: def':
             |                     ^
          548|             (mergeDefinitions

       … while evaluating the attribute 'optionalValue'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:863:5:
          862|
          863|     optionalValue =
             |     ^
          864|       if isDefined then { value = mergedValue; }

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:864:7:
          863|     optionalValue =
          864|       if isDefined then { value = mergedValue; }
             |       ^
          865|       else {};

       (8 duplicate frames omitted)

       … while evaluating definitions from `/nix/store/2n4vgiyv1f5z7kf6nnach0p3z9f1vq1s-source/home/home.nix':

       … from call site
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:832:128:
          831|         defs' = concatMap (m:
          832|           map (value: { inherit (m) file; inherit value; }) (addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
             |                                                                                                                                ^
          833|         ) defs;

       … while calling 'dischargeProperties'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:903:25:
          902|   */
          903|   dischargeProperties = def:
             |                         ^
          904|     if def._type or "" == "merge" then

       … while evaluating a branch condition
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/modules.nix:904:5:
          903|   dischargeProperties = def:
          904|     if def._type or "" == "merge" then
             |     ^
          905|       concatMap dischargeProperties def.contents

       … while evaluating the attribute 'value'
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/types.nix:551:38:
          550|               elemType
          551|               [{ inherit (def) file; value = def'; }]
             |                                      ^
          552|             ).optionalValue

       … while calling the 'elemAt' builtin
         at /nix/store/wj2qla569hnxwqfc26imv5hqbxc1rc27-source/lib/lists.nix:334:43:
          333|   */
          334|   imap1 = f: list: genList (n: f (n + 1) (elemAt list n)) (length list);
             |                                           ^
          335|

       … while evaluating the attribute 'hyprland-plugins.packages.x86_64-linux.borders-plus-plus'
         at /nix/store/07sml9kgjxms3iwixyiwlw4j3pwnabzd-source/flake.nix:30:5:
           29|   in {
           30|     packages = eachSystem (system: {
             |     ^
           31|       inherit

       error: attribute 'lib' missing
       at /nix/store/07sml9kgjxms3iwixyiwlw4j3pwnabzd-source/flake.nix:17:23:
           16|   }: let
           17|     inherit (nixpkgs) lib;
             |                       ^
           18|     eachSystem = lib.genAttrs (import systems);

any help is appreciated! cheers

You have this in your flake.nix

    hyprland-plugins = {
      url = "github:hyprwm/hyprland-plugins";
      inputs.nixpkgs.follows = "hyprland";
    };

It's a typo, as the 3rd line should be

inputs.hyprland.follows = "hyprland";

ah my bad i should have seen that, that fixed it, thanks a lot!