This repository has been archived on 2025-08-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
t14_legacy_config/home/gui/startx.nix
2022-11-29 17:28:53 -06:00

19 lines
No EOL
387 B
Nix

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