2024-06-29 03:22:34 +00:00
|
|
|
{ lib, config, pkgs, inputs, ... }:
|
2024-05-31 05:58:55 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.snowhawk.dwm;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.snowhawk.dwm = {
|
|
|
|
enable = lib.mkEnableOption "dwm";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-06-29 01:35:31 +00:00
|
|
|
# Enable the X11 windowing system.
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
2024-05-31 05:58:55 +00:00
|
|
|
services.xserver.windowManager.dwm = {
|
|
|
|
enable = true;
|
2024-06-07 01:42:54 +00:00
|
|
|
package = pkgs.dwm.overrideAttrs (oldAttrs: {
|
|
|
|
patches = [
|
|
|
|
../home/dwm/config.def.h-6.5.diff
|
|
|
|
];
|
|
|
|
});
|
2024-05-31 05:58:55 +00:00
|
|
|
};
|
2024-05-31 08:50:59 +00:00
|
|
|
|
2024-06-26 09:09:59 +00:00
|
|
|
services.picom = {
|
|
|
|
enable = true;
|
|
|
|
fade = false;
|
|
|
|
};
|
|
|
|
|
2024-06-28 02:22:58 +00:00
|
|
|
systemd.user.services.xrootdatetime = {
|
2024-06-28 03:46:23 +00:00
|
|
|
script = ''
|
|
|
|
while true; do
|
|
|
|
sleep 1 && date +"<-- %A, %B %d -- %H:%M -->" | xargs -I% ${pkgs.xorg.xsetroot}/bin/xsetroot -name %
|
|
|
|
done
|
|
|
|
'';
|
2024-06-28 02:22:58 +00:00
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
partOf = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
|
2024-06-29 02:26:14 +00:00
|
|
|
systemd.user.services.fehbg = {
|
|
|
|
script = ''
|
2024-06-29 03:22:34 +00:00
|
|
|
${pkgs.feh}/bin/feh --no-fehbg --bg-scale '${inputs.backgrounds}/bg-none-nord.webp'
|
2024-06-29 02:26:14 +00:00
|
|
|
'';
|
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
partOf = [ "graphical-session.target" ];
|
|
|
|
};
|
|
|
|
|
2024-07-18 01:45:18 +00:00
|
|
|
systemd.user.services.polkit-gnome-authentication-agent = {
|
|
|
|
description = "polkit-gnome-authentication-agent";
|
|
|
|
wantedBy = [ "graphical-session.target" ];
|
|
|
|
wants = [ "graphical-session.target" ];
|
|
|
|
after = [ "graphical-session.target" ];
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "simple";
|
|
|
|
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
|
|
|
|
Restart = "on-failure";
|
|
|
|
RestartSec = 1;
|
|
|
|
TimeoutStopSec = 10;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-05-31 08:50:59 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
dmenu
|
2024-06-30 08:24:09 +00:00
|
|
|
xclip
|
2024-05-31 08:50:59 +00:00
|
|
|
];
|
2024-05-31 05:58:55 +00:00
|
|
|
};
|
|
|
|
}
|