nix: Make alacritty and other GL apps runnable

Not everyone works, but already something.
This commit is contained in:
Geoffrey Frogeye 2023-11-05 22:28:38 +01:00
parent 8820d5edc4
commit dcb03fa895
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -3,7 +3,6 @@
xsession = { xsession = {
enable = true; enable = true;
windowManager = { windowManager = {
command = "${config.xsession.windowManager.i3.package}/bin/i3";
i3 = { i3 = {
enable = true; enable = true;
config = config =
@ -439,11 +438,21 @@
}; };
home = { home = {
file = { file =
let
nixgl = import
(builtins.fetchGit {
url = "https://github.com/nix-community/nixGL";
rev = "489d6b095ab9d289fe11af0219a9ff00fe87c7c5";
})
{ };
in
{
".xinitrc" = { ".xinitrc" = {
# TODO Configurable
source = pkgs.writeShellScript "xinitrc" '' source = pkgs.writeShellScript "xinitrc" ''
${pkgs.xorg.xrdb}/bin/xrdb ${config.xresources.path} ${pkgs.xorg.xrdb}/bin/xrdb ${config.xresources.path}
${config.xsession.windowManager.command} ${nixgl.nixVulkanIntel}/bin/nixVulkanIntel ${nixgl.nixGLIntel}/bin/nixGLIntel ${config.xsession.windowManager.command}
''; '';
}; };
}; };