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

27 lines
373 B
Nix

{
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
autorandr --change
copyq &
systemctl --user start dwm-status &
exec dwm
'';
};
}