1{ config, lib, pkgs, ... }: 2 3with lib; 4 5let 6 cfg = config.services.xserver.windowManager.hypr; 7in 8{ 9 ###### interface 10 options = { 11 services.xserver.windowManager.hypr.enable = mkEnableOption (lib.mdDoc "hypr"); 12 }; 13 14 ###### implementation 15 config = mkIf cfg.enable { 16 services.xserver.windowManager.session = singleton { 17 name = "hypr"; 18 start = '' 19 ${pkgs.hypr}/bin/Hypr & 20 waitPID=$! 21 ''; 22 }; 23 environment.systemPackages = [ pkgs.hypr ]; 24 }; 25}