t14_legacy_config/home/gui/startx.nix
2022-11-29 17:46:55 -06:00

19 lines
386 B
Nix

{ config, pkgs, lib, ... } :
with lib;
{
config = mkIf ( !config.home.isolation.active ) {
xsession.enable = true;
home.file.".xinitrc".source = let
content = if config.local.nixos then ''
exec ~/.xsession
'' else ''
exec ${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ~/.xsession
'';
in
pkgs.writeShellScript "xinitrc" content;
};
}