add desktop platform
This commit is contained in:
parent
a598918c63
commit
f07257ab6d
28 changed files with 1604 additions and 0 deletions
26
home/platforms/fabian@posixlycorrect/gui/startx.nix
Normal file
26
home/platforms/fabian@posixlycorrect/gui/startx.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.local.gui.startx;
|
||||
in {
|
||||
options.local.gui.startx.enable = mkEnableOption "startx";
|
||||
config = mkIf cfg.enable {
|
||||
xsession.enable = true;
|
||||
|
||||
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