nixfleet/hmModules/headless-hyprland/default.nix
Andrea Ciceri a394b9cefd
All checks were successful
/ test (push) Successful in 32s
Reformat everything
2024-09-20 11:37:17 +02:00

19 lines
429 B
Nix

{
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}
'';
};
};
}