| 
									
										
										
										
											2024-07-28 21:08:02 +02:00
										 |  |  | { | 
					
						
							|  |  |  |   config, | 
					
						
							|  |  |  |   lib, | 
					
						
							|  |  |  |   pkgs, | 
					
						
							|  |  |  |   ... | 
					
						
							|  |  |  | }: | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  | let | 
					
						
							|  |  |  |   cfg = config.my.profiles.sway; | 
					
						
							|  |  |  | in | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   imports = [ | 
					
						
							| 
									
										
										
										
											2023-03-19 15:35:02 +01:00
										 |  |  |     ./autostart.nix | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  |     ./location.nix | 
					
						
							|  |  |  |     ./screen-sharing.nix | 
					
						
							|  |  |  |     ./theme.nix | 
					
						
							|  |  |  |   ]; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   options.my.profiles.sway = with lib; { | 
					
						
							|  |  |  |     enable = mkEnableOption "sway profile"; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   config = lib.mkIf cfg.enable { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     my.profiles = { | 
					
						
							| 
									
										
										
										
											2023-03-19 15:35:02 +01:00
										 |  |  |       sway-autostart.enable = true; | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  |       sway-location.enable = true; | 
					
						
							|  |  |  |       sway-screen-sharing.enable = true; | 
					
						
							|  |  |  |       sway-theme.enable = true; | 
					
						
							|  |  |  |     }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-07-28 21:08:02 +02:00
										 |  |  |     environment.systemPackages = with pkgs; [ polkit_gnome ]; | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  |     environment.pathsToLink = [ "/libexec" ]; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |     programs = { | 
					
						
							| 
									
										
										
										
											2024-12-08 20:28:05 +01:00
										 |  |  |       foot.enable = true; | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |       light.enable = true; | 
					
						
							| 
									
										
										
										
											2024-12-08 20:28:05 +01:00
										 |  |  |       wshowkeys.enable = true; | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |       sway = { | 
					
						
							|  |  |  |         enable = true; | 
					
						
							|  |  |  |         wrapperFeatures = { | 
					
						
							|  |  |  |           gtk = true; | 
					
						
							|  |  |  |           base = true; | 
					
						
							|  |  |  |         }; | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |         extraPackages = with pkgs; [ | 
					
						
							|  |  |  |           brightnessctl | 
					
						
							|  |  |  |           dmenu | 
					
						
							|  |  |  |           gammastep | 
					
						
							|  |  |  |           grim | 
					
						
							|  |  |  |           i3status-rust | 
					
						
							|  |  |  |           mako | 
					
						
							|  |  |  |           slurp | 
					
						
							|  |  |  |           swayidle | 
					
						
							|  |  |  |           swaylock | 
					
						
							|  |  |  |           wdisplays | 
					
						
							| 
									
										
										
										
											2024-09-09 18:35:58 +02:00
										 |  |  |           wezterm | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |           wf-recorder | 
					
						
							|  |  |  |           wl-clipboard | 
					
						
							|  |  |  |           wofi | 
					
						
							|  |  |  |           xwayland | 
					
						
							|  |  |  |         ]; | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-11-12 23:36:30 +01:00
										 |  |  |         extraSessionCommands = ''
 | 
					
						
							|  |  |  |           export XDG_SESSION_TYPE=wayland | 
					
						
							|  |  |  |           export XDG_CURRENT_DESKTOP=sway | 
					
						
							|  |  |  |           export SDL_VIDEODRIVER=wayland | 
					
						
							|  |  |  |           export QT_QPA_PLATFORM=wayland | 
					
						
							|  |  |  |           export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" | 
					
						
							|  |  |  |           export _JAVA_AWT_WM_NONREPARENTING=1 | 
					
						
							|  |  |  |           export CLUTTER_BACKEND=wayland | 
					
						
							|  |  |  |           export SAL_USE_VCLPLUGIN=gtk3 | 
					
						
							|  |  |  |           export MOZ_ENABLE_WAYLAND=1 | 
					
						
							|  |  |  |           export MOZ_USE_XINPUT2=1 | 
					
						
							|  |  |  |           export NIXOS_OZONE_WL=1 | 
					
						
							|  |  |  |         '';
 | 
					
						
							|  |  |  |       }; | 
					
						
							| 
									
										
										
										
											2023-03-19 12:38:08 +01:00
										 |  |  |     }; | 
					
						
							|  |  |  |   }; | 
					
						
							|  |  |  | } |