nixos/modules/dwm.nix
2024-06-06 20:04:07 -07:00

25 lines
453 B
Nix

{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.dwm;
in
{
options.snowhawk.dwm = {
enable = lib.mkEnableOption "dwm";
};
config = lib.mkIf cfg.enable {
services.xserver.windowManager.dwm = {
enable = true;
package = pkgs.dwm.overrideAttrs (oldAttrs: {
patches = [
../home/dwm/config.def.h-6.5.diff
];
});
};
environment.systemPackages = with pkgs; [
dmenu
];
};
}