Commit 1977fc042e92

Vincent Demeester <vincent@sbr.pm>
2020-05-21 15:44:36
nixos: trying to set nixpkgs-overlays
See https://nixos.wiki/wiki/Overlays Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent cb9e352
Changed files (2)
modules
overlays
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