[Nix-dev] setting kdm?

Tony White tonywhite100 at googlemail.com
Mon Jun 8 10:25:00 CEST 2009


2009/4/12 Tony White <tonywhite100 at googlemail.com>:
> 2009/4/12 Sander van der Burg - EWI <S.vanderBurg at tudelft.nl>:
>> Well, I know this sounds confusing because the kdm upstart service is
>> basically a hack and not coded properly. The reason why you should disable
>> the xserver is that the xserver upstart job will start the slim display
>> manager and we want to use KDM as display manager, not slim.
>>
>> The only reason why there are xserver properties in the configuration.nix is
>> that I wanted to use the same xserver properties as the regular xserver
>> upstart job, instead of duplicating them in system/options.nix. The kdm
>> upstart service is just a temporary service anyway.
>>
>> I know this is dirty. Preferably, we just want one xserver upstart job that
>> you can use to start either slim, kdm, or some other display manager such as
>> gdm. When I'm done with experimenting with kdm, I will merge it with the
>> regular xserver upstart job.
>>
>> -----Oorspronkelijk bericht-----
>> Van: Tony White [mailto:tonywhite100 at googlemail.com]
>> Verzonden: za 11-4-2009 2:37
>> Aan: Sander van der Burg - EWI
>> CC: nix-dev
>> Onderwerp: Re: [Nix-dev] setting kdm?
>>
>> 2009/4/10 Sander van der Burg - EWI <S.vanderBurg at tudelft.nl>:
>>> I'm still working on the kdm service. It is still not finished and
>>> properly
>>> tested.
>>>
>>> In order to use it you have to add a kdm service in your
>>> configuration.nix.
>>> Basically it should look something like this:
>>>
>>> {
>>>   ...
>>>
>>>   services = {
>>>     kdm = {
>>>       enabled = true;
>>>     };
>>>
>>>     xserver = {
>>>       enabled = false;
>>>       /* Your X server properties here */
>>>     }
>>>   };
>>> }
>>>
>>> The KDM service uses all X server settings from the services.xserver
>>> attribute set (yes I know this should be handled differently).
>>> Currently, the kdm service is a clone of the xserver upstart service
>>> modified to handle kdm. When the fixstyle-branche is merged we will
>>> implement a more cleaner and modular xserver upstart service.
>>>
>>> As I said, the kdm service is not finished yet, so I cannot guarantee that
>>> it will work for you.
>>>
>>> -----Oorspronkelijk bericht-----
>>> Van: nix-dev-bounces at cs.uu.nl namens Tony White
>>> Verzonden: vr 10-4-2009 21:19
>>> Aan: nix-dev
>>> Onderwerp: [Nix-dev] setting kdm?
>>>
>>> Is there an option to set kdm as the default display manager using
>>> configuration.nix and could someone please point me towards a working
>>> example, If they could.
>>>
>>> Thank you,
>>>
>>> Tony
>>> _______________________________________________
>>> nix-dev mailing list
>>> nix-dev at cs.uu.nl
>>> https://mail.cs.uu.nl/mailman/listinfo/nix-dev
>>>
>>>
>>
>> Thanks for the info Sander,
>> I follow but not completely.
>> I can see that with kdm set like that in configuration.nix means that
>> xserver needs to be enabled = false because kdm is a clone of that but
>> do the xserver settings whilst this clone of the xserver config is
>> being used need to be in the kdm section?
>> What I mean is, If the settings are in the xserver section, Will they
>> still be used if I do set kdm = true?
>> So do I need to replicate them into the kdm section?
>>
>> Sorry if it's silly question but I haven't explored the upstart jobs
>> yet, NixOS is still pretty new to me and I'm used to the old way of
>> managing services that Mandriva Linux still uses.
>>
>> Thanks again,
>>
>> Tony
>>
>>
>
> OK. I'm not impatient so I'll not jump into this just yet.
> Would you be able to announce when you're a bit a happier with the
> code and it becomes a bit less hackie please?
> I would be happier to switch then.
>
> Thanks for the reply,
>
> Tony
>

Hi,
Sander did you manage to get anywhere with the kdm upstart job? I'm
getting random freezes using kde4 with xdm (I'm 50% sure it's because
of xdm) And I wasn't able to get your method to work.

I'd just like to know I'm not repeating something already done if I
try to create a working method here. Any guidelines on the way it
needs to work would be great too.

Thanks,
Tony



More information about the nix-dev mailing list