[Nix-dev] Window managers etc ..

Marc Weber marco-oweber at gmx.de
Sat Mar 15 14:27:22 CET 2008


What do you think of having multiple X-Servers with different window
managers?

Or what about choosing the window manager when logging in?

Does someone like to work with me on this?

I'd like to introduce something similar i've done with services. Just a
simple file
{ pkgs, ... } : {
  // kind of window manager description
}

So that adding another wm is as easy as copy a file and choose another
executable with options.

The configuration.nix conf could look like this

xservers = 
  let languages =  ["de" "..." ];
      windowManagers = with pkgs.windowManagers; [twm wmii compiz kde gnome custom];
  in {
    xserver = { # xserver is service name
      screen = 8; # Meta-Shift 8 key combo
      authentication = pkgs.gnomeLoginManager windowManagers languages 
    };
    xserver2 = { # xserver2 is service name (start xserver2/ stop xserver2)
      screen = 7;
      authentication = pkgs.kdeLoginManager windowManagers languages
    };
    myLoginImmediately = {
      screen = 5;
      authentication = loginAsUser "en" "marc" pkgs.windowManager.wmii;
    };
  }

Marc W.



More information about the nix-dev mailing list