Comments (3)
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 likehttps://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.
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.
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 ofmaster
? 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)
- all-the-icons font is not installed HOT 5
- `Invalid preview key: [67108896]` on `M-x consult-recent-file` HOT 4
- Bug: "Doom hasn't been initialized yet" HOT 3
- Enable imagemagick HOT 1
- Installation hangs when using pkgs.emacsPgtk HOT 15
- Avoid package compile HOT 6
- Build fails with error about libgenerated.nix HOT 5
- error: getting status of '/nix/store/bbi0bn9i9dslcrc1nasckhbkb8gqd66m-source/doom/doom.d': No such file or directory HOT 2
- No such file or directory, default.el HOT 1
- `init.el` module help doesn't seem to work HOT 4
- 23.05: Segfault HOT 3
- Build fail on nix unstable branch HOT 1
- How to use XDG paths for the package? HOT 1
- Fails if not run with su, always launches with emacs standard splash screen on NixOS under WSL
- Unable to run doom-emacs in home-manager wihtou flakes
- Unable to build with emacs version > 28 HOT 1
- error: function 'anonymous lambda' called without required argument 'version' when running `home-manager switch` HOT 1
- Recent Dependency update PRs failing tests HOT 1
- Can I combine the options from this derivation with home-manager options?
- High CPU && RAM usage HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nix-doom-emacs.