Using X without a Display Manager: Difference between revisions

imported>Doronbehar
Add method of startx as displayManager and mention D-Bus issues' fix
Klinger (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 21: Line 21:
Then, it's just necessary to '''gather X configuration files''' into one directory and create a config file that also points X at the correct module paths, by running the following script (which should be re-run each time you run <code>nixos-rebuild switch</code>), but you will need to add or remove to the <code>pkgs</code> and <code>fontpkgs</code> arrays according to your preferences:
Then, it's just necessary to '''gather X configuration files''' into one directory and create a config file that also points X at the correct module paths, by running the following script (which should be re-run each time you run <code>nixos-rebuild switch</code>), but you will need to add or remove to the <code>pkgs</code> and <code>fontpkgs</code> arrays according to your preferences:
<syntaxhighlight lang="sh">
<syntaxhighlight lang="sh">
generateXorgConf.sh
------------------------------------------------
#!/bin/sh
#!/bin/sh
#generate unprivileged user xorg.conf for nixOS
#generate unprivileged user xorg.conf for nixOS
Line 94: Line 96:
</syntaxhighlight>
</syntaxhighlight>


<code>startx</code> is treated as a displayManager and therefor it is used instead of the default (<code>lightdm</code>).
<code>startx</code> is treated as a displayManager and therefore it is used instead of the default (<code>lightdm</code>).


== Setting up the user's D-Bus Daemon ==
== Setting up the user's D-Bus Daemon ==
Line 112: Line 114:
fi
fi
</syntaxhighlight>
</syntaxhighlight>
[[Category: Desktop environment]]