52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ lib, config, pkgs, inputs, ... }:
|
|
|
|
let
|
|
cfg = config.snowhawk.dwm;
|
|
in
|
|
{
|
|
options.snowhawk.dwm = {
|
|
enable = lib.mkEnableOption "dwm";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# Enable the X11 windowing system.
|
|
services.xserver.enable = true;
|
|
|
|
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 = ''
|
|
while true; do
|
|
sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% ${pkgs.xorg.xsetroot}/bin/xsetroot -name %
|
|
done
|
|
'';
|
|
wantedBy = [ "graphical-session.target" ];
|
|
partOf = [ "graphical-session.target" ];
|
|
};
|
|
|
|
systemd.user.services.fehbg = {
|
|
script = ''
|
|
${pkgs.feh}/bin/feh --no-fehbg --bg-scale '${inputs.backgrounds}/bg-none-nord.webp'
|
|
'';
|
|
wantedBy = [ "graphical-session.target" ];
|
|
partOf = [ "graphical-session.target" ];
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
dmenu
|
|
];
|
|
};
|
|
}
|