add desktop platform
This commit is contained in:
parent
a598918c63
commit
6355ea5576
26 changed files with 2609 additions and 13 deletions
22
home/platforms/fabian@posixlycorrect/gui/startx.nix
Normal file
22
home/platforms/fabian@posixlycorrect/gui/startx.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; {
|
||||
xsession.enable = true;
|
||||
|
||||
#TODO: why is intel mentioned here? i dont use intel
|
||||
home.file.".xinitrc".source = let
|
||||
content =
|
||||
if config.local.nixos
|
||||
then ''
|
||||
exec ~/.xsession
|
||||
''
|
||||
else ''
|
||||
exec ${pkgs.nixgl.nixGLIntel}/bin/nixGLIntel ~/.xsession
|
||||
'';
|
||||
in
|
||||
pkgs.writeShellScript "xinitrc" content;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue