2022-10-21 18:38:19 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.services.xserver.windowManager.hypr;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
###### interface
|
|
|
|
options = {
|
2024-04-21 15:54:59 +00:00
|
|
|
services.xserver.windowManager.hypr.enable = mkEnableOption "hypr";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
###### implementation
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.xserver.windowManager.session = singleton {
|
|
|
|
name = "hypr";
|
|
|
|
start = ''
|
|
|
|
${pkgs.hypr}/bin/Hypr &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.hypr ];
|
|
|
|
};
|
|
|
|
}
|