greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / overlays / default.nix26 lines · 637B · raw

1{ inputs, outputs, ... }:
2
3{
4  # https://m7.rs/git/nix-config/tree/overlays/default.nix#line-13
5  flake-inputs = final: _: {
6    inputs =
7      builtins.mapAttrs (_: flake:
8        let
9          legacyPackages = (flake.legacyPackages or {}).${final.system} or {};
10          packages = (flake.packages or {}).${final.system} or {};
11        in
12          if legacyPackages != {} then legacyPackages else packages
13      )
14      inputs;
15  };
16
17  modifications = final: prev: {
18    dwl = prev.dwl.overrideAttrs (oldAttrs: {
19      enableXWayland = true;
20      
21      postPatch = ''
22        cp ${./dwl_config.h} config.h
23      '';
24    });
25  };
26}