t14_legacy_config/home/gui/startx.nix

19 lines
386 B
Nix
Raw Normal View History

2022-11-30 00:28:53 +01:00
{ config, pkgs, lib, ... } :
with lib;
{
config = mkIf ( !config.home.isolation.active ) {
xsession.enable = true;
2022-11-30 00:46:55 +01:00
home.file.".xinitrc".source = let
2022-11-30 00:28:53 +01:00
content = if config.local.nixos then ''
exec ~/.xsession
'' else ''
exec ${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ~/.xsession
'';
in
pkgs.writeShellScript "xinitrc" content;
};
}