Skip to content

Commit

Permalink
Add environment in nixosModule
Browse files Browse the repository at this point in the history
  • Loading branch information
coastalwhite committed Apr 6, 2024
1 parent ff1c89f commit fac919f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';
};
};
};
};
}
Expand Down

0 comments on commit fac919f

Please sign in to comment.