Coder Social home page Coder Social logo

Comments (7)

Lenivaya avatar Lenivaya commented on August 25, 2024

I checked your config and seems like i have quick-fix for you

Just add unstable channel

sudo nix-channel --add "https://nixos.org/channels/nixpkgs-unstable" unstable

And then in your configuration.nix

nixpkgs.overlays = [
  (self: super:
    with super; {
      my = {
        unstable = import <unstable> { inherit config; };
    })
];

Now you can access unstable via pkgs.unstable, this is exactly what we need because we want install xmonad from unstable channel( especially xmonad-contrib, which is only 0.15 version on stable channel )

And all you have to do is to set xmonad.haskellPackages to use unstable channel:

services.xserver.windowManager.xmonad.haskellPackages = pkgs.unstable.haskellPackages;

from dotfiles.

Lenivaya avatar Lenivaya commented on August 25, 2024

While i was writing this i noticed "xmonad-contrib_0_16" package, but i still recommend to install xmonad from unstable so as not to wait for releases for a long time.

from dotfiles.

jcguu95 avatar jcguu95 commented on August 25, 2024

Thanks so much for reaching out!

I added the unstable channel, and added the following in to my configuration.nix:

nixpkgs.overlays = [
  (self: super:
    with super; {
      my = {
        unstable = import <unstable> { inherit config; };
    };})  ### trivial fix here
];

services.xserver.windowManager.xmonad.haskellPackages = pkgs.unstable.haskellPackages;

But it seems that unstable.HaskellPackages does not exist, as suggested by the error message:

attribute 'unstable' missing, at..

I've also tried pkgs.haskellPackages.unstable and pkgs.unstableHaskellPackages without luck.


I should say I'm very new to nixOS. There might be an easy fix that I don't know. I will level up my skills and come back later :) Thank you!

from dotfiles.

Lenivaya avatar Lenivaya commented on August 25, 2024

Well, seems like it's just my typo

Try this, should work

nixpkgs.overlays = [
  (self: super:
    with super; {  
        unstable = import <unstable> { inherit config; };
    }) 
];

from dotfiles.

jcguu95 avatar jcguu95 commented on August 25, 2024

That solves this particular issue. Thank you.

Though there's another complaint of not finding this package, I should close this as it's another issue.

from dotfiles.

Lenivaya avatar Lenivaya commented on August 25, 2024

Add gloss to haskellPackages and all must compile

from dotfiles.

jcguu95 avatar jcguu95 commented on August 25, 2024

Compiled. Wow. Gorgeous 👍

from dotfiles.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.