Dwm: Difference between revisions
imported>Alexnortung m typo |
imported>Gi-yt I added a way to use custom builds easily |
||
| Line 91: | Line 91: | ||
]; | ]; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Using Custom Builds == | |||
If you want to use an existing config of DWM you can create a custom local nix overlay | |||
<syntaxhighlight lang="nix"> | |||
nixpkgs.overlays = [ | |||
(final: prev: { | |||
dwm = prev.dwm.overrideAttrs (old: { src = /path/to/dwm ;}); | |||
}) | |||
]; | |||
</syntaxhighlight> | |||
This will make sure it will rebuild your suckless build when nix is rebuilt. | |||
Note: nix will only rebuild DWM if there are changes to the files. | |||
== See also == | == See also == | ||
[https://nixos.wiki/wiki/St st] | [https://nixos.wiki/wiki/St st] | ||