Skip to content

Commit

Permalink
flake: move flake.overlays in a separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
moni-dz committed Nov 26, 2024
1 parent c7b007f commit c18a10d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
16 changes: 2 additions & 14 deletions packages/default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,10 @@
{ self, inputs, ... }:

{
flake.overlays.default = final: prev: {
iosevka-ft = prev.iosevka.override {
privateBuildPlan = __readFile ./patches/iosevka-ft-build-plan.toml;
set = "Ft";
};
};
imports = [ ./overlays.nix ];

perSystem =
{ lib, system, ... }:
let
pkgs = import inputs.nixpkgs {
inherit system;
allowUnfree = true;
allowUnsupportedSystem = true;
};
in
{ pkgs, ... }:
{
packages = removeAttrs (self.overlays.default pkgs pkgs) [ "lib" ];
};
Expand Down
10 changes: 10 additions & 0 deletions packages/overlays.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
_:

{
flake.overlays.default = final: prev: {
iosevka-ft = prev.iosevka.override {
privateBuildPlan = __readFile ./patches/iosevka-ft-build-plan.toml;
set = "Ft";
};
};
}

0 comments on commit c18a10d

Please sign in to comment.