[Nix-dev] custom dwm/windowManager package on /run/current-system

Anderson Torres torres.anderson.85 at gmail.com
Sat Oct 11 16:52:47 CEST 2014


As far as I know, dwm is configured by source-patching some files. It
doesn't use anything like '~/.dwmrc' files, it really modifies C
source code!

Well, we can use some derivation like "patches = [ patch1 patch2 ];"

2014-10-10 18:00 GMT-03:00 Bjørn Forsman <bjorn.forsman at gmail.com>:
> Hi Javier,
>
> On 10 October 2014 18:39, Javier Aguirre <javi at javaguirre.net> wrote:
>> Good evening,
>>
>> I've been playing around with NixOS for a while, I have my own NIXPKGS repo
>> with a custom version of dwm, the window manager.
>>
>> The problem is I can install my custom dwm build, but when I boot the old
>> dwm remains(the one in the NixOS original channel) in
>> /run/current-system/sw/bin/dwm.
>
> What ends up in /run/current-system/sw/bin/* is controlled by the
> environment.systemPackages option. (Installing with nix-env won't add
> anything to this directory.)
>
>> I can install it for root(default profile) and my user because I can see a
>> change I made to 'dwm -v', but I cannot change the version that boots. I
>> located the hash and the current version working for boot, but I don't know
>> If I have to install it for a different profile, make a derivation in my
>> configuration.nix, etc.
>
> I don't use dwm, so I don't know if this applies to that specific
> case. Some NixOS modules have options to specify which derivation to
> use for the component it configures. For example, for the tomcat
> server, there is a services.tomcat.package option. It defaults to
> pkgs.tomcat7, but you can specify something else if you want.
>
> If there is no option you can try using
>
> nixpkgs.config = {
>   packageOverrides = pkgs: {
>     dwm = myCustomDwmDerivation;
>   };
> };
>
> in configuration.nix to supply your own definition of 'dwm', used
> across the whole system.
>
> Best regards,
> Bjørn Forsman
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list