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 }:
|
||||
let
|
||||
inherit (builtins) listToAttrs baseNameOf attrNames readDir;
|
||||
inherit (builtins) listToAttrs baseNameOf attrNames attrValues readDir;
|
||||
inherit (nixpkgs.lib) removeSuffix;
|
||||
system = "x86_64-linux";
|
||||
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = self.overlays;
|
||||
overlays = attrValues self.overlays;
|
||||
config = { allowUnfree = true; };
|
||||
};
|
||||
|
||||
@ -35,10 +35,12 @@
|
||||
|
||||
overlay = import ./pkgs;
|
||||
|
||||
overlays = let
|
||||
overlays = map (name: import (./overlays + "/${name}"))
|
||||
(attrNames (readDir ./overlays));
|
||||
in overlays;
|
||||
overlays =
|
||||
let
|
||||
overlayDir = ./overlays;
|
||||
fullPath = name: overlayDir + "/${name}";
|
||||
overlayPaths = map fullPath (attrNames (readDir overlayDir));
|
||||
in pathsToImportedAttrs overlayPaths;
|
||||
|
||||
packages.x86_64-linux = {
|
||||
inherit (pkgs) sddm-chili dejavu_nerdfont purs pure;
|
||||
|
Loading…
Reference in New Issue
Block a user