home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 1977fc042e92af1685585be04481995599ab992e
parent cb9e352f9b2ed6df04bbd4fc2a92e3a5dcc0b723
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Thu, 21 May 2020 15:44:36 +0200

nixos: trying to set nixpkgs-overlays

See https://nixos.wiki/wiki/Overlays

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/nix-config.nixos.nix | 6+++++-
Aoverlays/compat/overlays.nix | 8++++++++
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/modules/profiles/nix-config.nixos.nix b/modules/profiles/nix-config.nixos.nix @@ -47,7 +47,11 @@ in dates = cfg.gcDates; options = "--delete-older-than ${cfg.olderThan}"; }; - nixPath = [ "nixpkgs=${sources.nixos}" "nixos-config=/etc/nixos/configuration.nix" ]; + nixPath = [ + "nixpkgs=${sources.nixos}" + "nixos-config=/etc/nixos/configuration.nix" + "nixpkgs-overlays=/etc/nixos/overlays/compat" + ]; # if hydra is down, don't wait forever extraOptions = '' connect-timeout = 20 diff --git a/overlays/compat/overlays.nix b/overlays/compat/overlays.nix @@ -0,0 +1,8 @@ +self: super: +with super.lib; +let + # Load the system config and get the `nixpkgs.overlays` option + overlays = (import <nixpkgs/nixos> { }).config.nixpkgs.overlays; +in +# Apply all overlays to the input of the current "main" overlay +foldl' (flip extends) (_: super) overlays self