[Nix-dev] Correct XMonad Configuration
Taeer Bar-Yam
tb442 at cornell.edu
Mon Jan 11 17:46:19 CET 2016
Correction: perhaps this will help: https://github.com/NixOS/nixos/issues/194
That is, try adding pkgs.xlibs.xmessage to environment.systemPackages
--Taeer
> On Jan 11, 2016, at 11:39 AM, Taeer Bar-Yam <tb442 at cornell.edu> wrote:
>
> Are you on the unstable channel? You might want to consider switching to it.
> Using:
> $ nix-channel --remove nixos
> $ nix-channel --add https://nixos.org/channels/nixos-unstable nixos
>
> I ran into the same exact issue, and I'm pretty sure there was a workaround using the stable channel (which I don't remember, sorry), but that this problem has been actually fixed in the unstable channel, and in fact, this is my entire xmonad setup (in configuration.nix):
> windowManager.default = "xmonad";
> windowManager.xmonad = {
> enable = true;
> enableContribAndExtras = true;
> };
> I don't even need extraPackages.
>
> Hope that helps,
> --Taeer
>
>> On Jan 10, 2016, at 10:05 AM, Sergiu Ivanov <sivanov at colimite.fr> wrote:
>>
>>
>> Dear NixOS Community,
>>
>> My name is Sergiu; I teach Computer Science and do research in
>> Theoretical Computer Science. I have some experience with Haskell
>> development. I came across NixOS quite some time ago and now I finally
>> have the opportunity to install it and maybe even try to contribute :-)
>>
>> I attach my configuration.nix; here's the XMonad-related snippet:
>>
>>
>> services.xserver.windowManager.xmonad = {
>> enable = true;
>> enableContribAndExtras = true;
>> extraPackages = self: [
>> self.xmonad-contrib
>> self.xmonad-extras
>> ];
>> };
>>
>>
>> When I try to xmonad --recompile the following xmonad.hs:
>>
>>
>> import XMonad
>> main = xmonad defaultConfig
>> { terminal = "termite"
>> , modMask = mod4Mask
>> , focusedBorderColor = "blue"
>> }
>>
>>
>> I get the error message that the module XMonad could not be found.
>>
>> I would like to minimise the number of Haskell packages installed at the
>> system level, so I don't add any to environment.systemPackages. Yet,
>> adding xmonad, xmonad-contrib, and xmonad-extras to
>> environment.systemPackages (and haskellPlatform, FWIW) doesn't change
>> anything for me (I still get the error).
>>
>> I tried cabal installing xmonad, xmonad-contrib, and xmonad-extras in a
>> Cabal sandbox, but I got an error about missing X11 libraries.
>>
>> I haven't tried ghcWithPackages yet, because I'm really not sure it's
>> going to help me: after all, I'm not compiling my xmonad.hs with GHC (at
>> least I don't seem to be). And then people seem to have been able to
>> address the issue without ghcWithPackages [0].
>>
>> Do you see anything flagrant with my setup?
>>
>> --
>> Sergiu
>>
>> <configuration.nix>
>> [0] https://github.com/NixOS/nixos/issues/194
>> _______________________________________________
>> 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