From 23b17e2c05e2a5f0b9b9576a38dd3940e6bba501 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Mon, 2 Oct 2023 11:51:53 +0100 Subject: [PATCH] overlays: use flake param for consistency --- overlays/default.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/overlays/default.nix b/overlays/default.nix index b797c5e2..fb2a0b6b 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,11 +1,8 @@ { pkgs, flake, ... }: -let - inherit (flake) inputs; -in { nixpkgs.overlays = [ - inputs.emacs.overlay + flake.inputs.emacs.overlay (final: prev: { # namespaces @@ -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 { }; @@ -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; }); }) ]; }