From 25ec5ef86d231f073066f75d3c0470a219b59e47 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Wed, 17 Apr 2024 13:44:56 +0200 Subject: [PATCH] [WIP] New `headless-hyprlan` module --- hmModules/headless-hyprland/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 hmModules/headless-hyprland/default.nix 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} + ''; + }; + }; +}