[WIP] New headless-hyprlan
module
This commit is contained in:
parent
3e1fe36c42
commit
25ec5ef86d
1 changed files with 18 additions and 0 deletions
18
hmModules/headless-hyprland/default.nix
Normal file
18
hmModules/headless-hyprland/default.nix
Normal file
|
@ -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}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue