Reorganize files, use less extra options on Sway, move session commands to home-manager

This commit is contained in:
Bun 2025-05-09 17:37:01 -04:00
parent 5cdd7b1de8
commit ee3b40f61f
25 changed files with 64 additions and 107 deletions

View file

@ -1,15 +1,7 @@
{ config, lib, ... }:
{
config = lib.mkIf config.system.desktop.enable {
programs.sway = {
enable = true;
extraOptions = [ "--unsupported-gpu" ];
extraSessionCommands = ''
export ELECTRON_OZONE_PLATFORM_HINT=wayland
export WLR_RENDERER=vulkan
'';
wrapperFeatures.gtk = true;
};
programs.sway.enable = true;
services.dbus.enable = true;
security.pam.services.swaylock = {};