Skip to content

Commit

Permalink
overlays: use flake param for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Oct 2, 2023
1 parent 6aebe67 commit 23b17e2
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions overlays/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
{ pkgs, flake, ... }:

let
inherit (flake) inputs;
in
{
nixpkgs.overlays = [
inputs.emacs.overlay
flake.inputs.emacs.overlay

(final: prev: {
# namespaces
Expand All @@ -18,7 +15,7 @@ in
wallpapers = prev.callPackage ../packages/wallpapers { };

# custom packages
arandr = prev.arandr.overrideAttrs (_: { src = inputs.arandr; });
arandr = prev.arandr.overrideAttrs (_: { src = flake.inputs.arandr; });

anime4k = prev.callPackage ../packages/anime4k { };

Expand Down Expand Up @@ -57,7 +54,7 @@ in

run-bg-alias = name: command: prev.callPackage ../packages/run-bg-alias { inherit name command; };

swaylock-effects = prev.swaylock-effects.overrideAttrs (_: { src = inputs.swaylock-effects; });
swaylock-effects = prev.swaylock-effects.overrideAttrs (_: { src = flake.inputs.swaylock-effects; });
})
];
}

0 comments on commit 23b17e2

Please sign in to comment.