añade fix de nixGL

This commit is contained in:
Fabián Montero 2022-11-29 17:28:53 -06:00
parent e18fc7ff28
commit 04a58457f8
7 changed files with 33 additions and 7 deletions

View file

@ -6,8 +6,6 @@ with lib;
config = mkIf ( !config.home.isolation.active ) {
xsession.enable = true;
services.picom = {
enable = true;
};

19
home/gui/startx.nix Normal file
View file

@ -0,0 +1,19 @@
{ 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;
};
}