Dwm: Difference between revisions

From NixOS Wiki
imported>Hypnosis2839
replace overlays with override, deduplicate info
imported>Hypnosis2839
m →‎Creating override: code formatting
Line 13: Line 13:
== Creating override ==
== Creating override ==


To patch dwm, override `services.xserver.windowManager.dwm.package` as below:
To patch dwm, override <code>services.xserver.windowManager.dwm.package</code> as below:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">

Revision as of 16:32, 17 August 2023

dwm is a window manager made by the suckless team.

Installation

Enable dwm</dwm> in your system configuration:

services.xserver.windowManager.dwm.enable = true;


Creating override

To patch dwm, override services.xserver.windowManager.dwm.package as below:

services.xserver.windowManager.dwm.package = pkgs.dwm.overrideAttrs (oldAttrs: rec {
  patches = [
    # for local patch files, replace with relative path to patch file
    ./path/to/local.patch
    # for external patches
    (pkgs.fetchpatch {
      # replace with actual URL
      url = "https://dwm.suckless.org/patches/path/to/patch.diff";
      # replace hash with the value from `nix-prefetch-url "https://dwm.suckless.org/patches/path/to/patch.diff"`
      hash = "";
    })
  ];
})

See also

st

DMenu