flake: Fix overlays for nix flake check
It complains that: value is a list while a set was expected, at /nix/store/0qdcc831rj27wz07lrri6bnfmhvm4wrm-source/flake.nix:26:7 But nixpkgs still expects a list, so we need to pass it just the values.
This commit is contained in:
parent
0b14dbbc2d
commit
a7749005bc
14
flake.nix
14
flake.nix
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
outputs = inputs@{ self, home, nixpkgs }:
|
outputs = inputs@{ self, home, nixpkgs }:
|
||||||
let
|
let
|
||||||
inherit (builtins) listToAttrs baseNameOf attrNames readDir;
|
inherit (builtins) listToAttrs baseNameOf attrNames attrValues readDir;
|
||||||
inherit (nixpkgs.lib) removeSuffix;
|
inherit (nixpkgs.lib) removeSuffix;
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
pkgs = import nixpkgs {
|
pkgs = import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
overlays = self.overlays;
|
overlays = attrValues self.overlays;
|
||||||
config = { allowUnfree = true; };
|
config = { allowUnfree = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -35,10 +35,12 @@
|
|||||||
|
|
||||||
overlay = import ./pkgs;
|
overlay = import ./pkgs;
|
||||||
|
|
||||||
overlays = let
|
overlays =
|
||||||
overlays = map (name: import (./overlays + "/${name}"))
|
let
|
||||||
(attrNames (readDir ./overlays));
|
overlayDir = ./overlays;
|
||||||
in overlays;
|
fullPath = name: overlayDir + "/${name}";
|
||||||
|
overlayPaths = map fullPath (attrNames (readDir overlayDir));
|
||||||
|
in pathsToImportedAttrs overlayPaths;
|
||||||
|
|
||||||
packages.x86_64-linux = {
|
packages.x86_64-linux = {
|
||||||
inherit (pkgs) sddm-chili dejavu_nerdfont purs pure;
|
inherit (pkgs) sddm-chili dejavu_nerdfont purs pure;
|
||||||
|
Loading…
Reference in New Issue
Block a user