regreet: Fix wrapper

This commit is contained in:
Erwin Boskma 2024-06-04 09:42:03 +02:00
parent 3985aae70d
commit 612c68728a
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -8,13 +8,12 @@ with lib;
let
cfg = config.eboskma.regreet;
regreetWrapper = pkgs.writeShellScriptBin "regreet-wrapper" (
lib.concatStringsSep "\n" (lib.optional cfg.wayvnc "${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 &")
++ [
toString
(lib.getExe pkgs.greetd.regreet)
]
regreetWrapperText = lib.concatStringsSep "\n" (
(lib.optional cfg.wayvnc "${pkgs.wayvnc}/bin/wayvnc 0.0.0.0 &")
++ [ "${lib.getExe pkgs.greetd.regreet}" ]
);
regreetWrapper = pkgs.writeShellScriptBin "regreet-wrapper" regreetWrapperText;
in
{
options.eboskma.regreet = {