From fac919f302f6103c5337924a8a070ffa51fcc623 Mon Sep 17 00:00:00 2001 From: coastalwhite Date: Sat, 6 Apr 2024 17:45:15 +0200 Subject: [PATCH] Add environment in nixosModule --- flake.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/flake.nix b/flake.nix index db5bba1..5b6631d 100644 --- a/flake.nix +++ b/flake.nix @@ -64,10 +64,21 @@ config = let lemursConfig = config.services.xserver.displayManager.lemurs; + sessionData = config.services.xserver.displayManager.sessionData; in lib.mkIf lemursConfig.enable { environment.systemPackages = [ packages.default ]; + + services.xserver.displayManager.job = { + environment = { + exec = '' + exec ${packages.default}/bin/lemurs \ + --xsessions ${sessionData}/share/xsessions \ + --wlsessions ${sessionData}/share/wayland-sessions + ''; + }; + }; }; }; }