dotfiles/nix/modules/home-manager/features/desktop/dwm.nix

27 lines
429 B
Nix
Raw Normal View History

2025-02-20 21:19:21 +00:00
{
config,
lib,
pkgs,
...
}:
with lib;
{
options.features.desktop.dwm.enable = mkEnableOption "Enable dwm";
config = mkIf config.features.desktop.dwm.enable {
home.file.".xinitrc".text = ''
systemctl --user import-environment DISPLAY
${pkgs.autorandr}/bin/autorandr --change
${pkgs.copyq}/bin/copyq &
systemctl --user start dwm-status &
exec ${pkgs.dwm}/bin/dwm
'';
};
}