Giter VIP home page Giter VIP logo

Comments (3)

ckiee avatar ckiee commented on June 18, 2024

I started with nixos a few days ago [...]

Welcome! I'm very direct but that means I solve problems (:

When I try to install doom-emacs I got this error:

Looks like your doomPrivateDir (/home/victor/doom.d) is missing the required init.el file, you can use this template doom.d.

The README.md file on this repo it's not so friendly for people who is new to nix

Nix is one big dookie and writing documentation isn't nearly as fun as getting things working... (at least for me)

do I have to install emacs with those overlays before installing this package? Or it does it all?

It should do everything:

  • You don't actually need this:
    home.file.".emacs.d/init.el".text = ''
      (load "default.el")
    '';
  • Or these:
  # services.emacs.package = pkgs.emacsPgtkGcc;
  # nixpkgs.overlays = [
  #   (import (builtins.fetchGit {
  #     url = "https://github.com/nix-community/emacs-overlay.git";
  #     ref = "master";
  #     rev = "c6b057968bbb9a68541ce3edfdf4aa01c32de369";
  #   }))
  # ];
  • Or this:
      # emacsPgtkGcc
  • But you probably do want this in the home-manager block:
services.emacs = {
 enable = true;
 package = doom-emacs;
};

Now, this will run, but won't configure stuff like fonts for you.. You can fix that by importing the home-manager module and doing something like this.


Some other things I noticed:

  • You use a path from /home/victor/doom.d. That doesn't sound very portable, ideally you should be able to copy your NixOS configuration and yote it on another machine and have it build right away.
  • You use fetchTarball and specify stuff like ​h​t​t​p​s​://github.com/blah/blah/archive/master.tar.gz. This is bad because your config might build one day and break the next when those URLs update. Nix lets you avoid this mess which is very nice.

Signed,
A bored Nix user distracting themselves from life with ✨fancy packaging tools✨!

from nix-doom-emacs.

victorpigmeo avatar victorpigmeo commented on June 18, 2024

Wow thank you so much for this awesome detailed message :)
I just don't got the fetchTarball part, is it better to use a fixed revision instead of master? That was your point?
Again, thank you, it is working now!

from nix-doom-emacs.

ckiee avatar ckiee commented on June 18, 2024

Wow thank you so much for this awesome detailed message :)

No problem :P

I just don't got the fetchTarball part, is it better to use a fixed revision instead of master? That was your point?

Yeah! I personally use niv but with flakes being popular now you should probably look into them instead.

from nix-doom-emacs.

Related Issues (20)

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.