diff --git a/hmModules/headless-hyprland/default.nix b/hmModules/headless-hyprland/default.nix new file mode 100644 index 0000000..e15b20a --- /dev/null +++ b/hmModules/headless-hyprland/default.nix @@ -0,0 +1,18 @@ +{ + config, + lib, + ... +}: let + originalConfig = config.wayland.windowManager.hyprland.extraConfig; + config = builtins.replaceStrings ["SUPER"] [""] originalConfig; +in { + systemd.user.services.headless-hyprland = { + Unit.Description = "Headless Hyprland"; + Service = { + Type = "oneshot"; + ExecStart = '' + ${lib.getExe config.wayland.windowManager.hyprland.package} --config ${config} + ''; + }; + }; +}