I’d like to use the dwl
compositor, and like dwm
, it’s supposed to be patched, or at least I want to modify the config.def.h
file which controls most settings.
I looked through the package on nixpkgs-unstable
(https://github.com/NixOS/nixpkgs/blob/8f40f2f90b9c9032d1b824442cfbbe0dbabd0dbd/pkgs/applications/window-managers/dwl/default.nix) and it has some options for specifying a custom config.h:
# Allow users to set an alternative config.def.h
postPatch = let
configFile = if lib.isDerivation conf || builtins.isPath conf
then conf
else writeText "config.def.h" conf;
in lib.optionalString (conf != null) "cp ${configFile} config.def.h";
How do I use this option in my NixOS configuration?