38 lines
788 B
Nix
38 lines
788 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
|
|
];
|
|
});
|
|
};
|
|
|
|
services.picom = {
|
|
enable = true;
|
|
fade = false;
|
|
};
|
|
|
|
systemd.user.services.xrootdatetime = {
|
|
script = builtins.readFile ../home/scripts/x-root-datetime.sh;
|
|
wantedBy = [ "graphical-session.target" ];
|
|
partOf = [ "graphical-session.target" ];
|
|
after = [ "graphical-session.target" ];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
dmenu
|
|
];
|
|
};
|
|
}
|