1
1
mirror of https://github.com/divnix/digga.git synced 2024-11-27 17:36:06 +03:00

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:
Jan Tojnar 2020-06-02 01:17:38 +02:00
parent 0b14dbbc2d
commit a7749005bc
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -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;