Commit 1977fc042e92
Changed files (2)
modules
profiles
overlays
compat
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
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