[Nix-dev] xmonad
Bas van Dijk
v.dijk.bas at gmail.com
Sat Nov 1 11:26:13 CET 2008
On Thu, Oct 30, 2008 at 12:35 PM, Michael Raskin <7c6f434c at mail.ru> wrote:
> Why not simply have no windowManager="none" and sessionType=""?
If you only have these nixos-rebuild will give an error:
windowManager = "none";
sessionType = "";
Adding this works:
sessionStarter = "";
Then running nixos-rebuild will create the following xclient file:
-----------------------------------------------------------------------------------------------------------
source /etc/profile
exec > $HOME/.Xerrors 2>&1
### Load X defaults.
if test -e ~/.Xdefaults; then
/nix/store/v4flnhrxq09j4jxy13kkm9f8vcr2fgwy-xrdb-1.0.4/bin/xrdb
-merge ~/.Xdefaults
fi
### Start the SSH agent.
export SSH_ASKPASS=/nix/store/z26xbhl1nn9kcaa81l9r79mh71c8hc4c-x11-ssh-askpass-1.2.4.1/libexec/x11-ssh-askpass
eval $(/nix/store/7arbadfwa71mpqi4rwh1jxayp2fb9ajb-openssh-4.7p1/bin/ssh-agent)
### Allow user to override system-wide configuration
if test -f ~/.xsession; then
source ~/.xsession;
fi
### Start a window manager.
# The session starter will start the window manager.
### Show a background image.
# (but not if we're starting a full desktop environment that does it for us)
if test -e $HOME/.background-image; then
/nix/store/hyi2nzv5h6hi4z7dsdwp9fm6licgzm15-feh-1.3.4/bin/feh
--bg-scale $HOME/.background-image
fi
### Start the session.
# For all other session types, we currently just start a
# terminal of the kind indicated by sessionCmd.
# !!! yes, this means that you 'log out' by killing the X server.
while ; do
sleep 1
done
-----------------------------------------------------------------------------------------------------------
Which does the job.
Thanks,
Bas
More information about the nix-dev
mailing list