19 lines
387 B
Nix
19 lines
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;
|
|
};
|
|
|
|
|
|
|
|
} |