From 395be3f74cb43d4454f02e6614a080e43b7bb26d Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Mon, 6 Jan 2020 00:07:26 -0700 Subject: [PATCH] legacy: pull in all overlays --- configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index f8542011..506b0009 100644 --- a/configuration.nix +++ b/configuration.nix @@ -3,6 +3,8 @@ # flake support (e.g `nixos-option`), can work as expected. { lib, ... }: let + inherit (builtins) attrNames readDir; + hostname = lib.fileContents /etc/hostname; host = "/etc/nixos/hosts/${hostname}.nix"; config = if (builtins.pathExists host) then @@ -25,5 +27,8 @@ in { "nixpkgs-overlays=/etc/nixos/overlays" ]; - nixpkgs.overlays = lib.singleton (import ./pkgs); + nixpkgs.overlays = let + overlays = map (name: import (./overlays + "/${name}")) + (attrNames (readDir ./overlays)); + in overlays; }