Comments (7)
Yes everything is great, thanks.
from nix-doom-emacs.
I'm not sure how you would do it with a flake exactly, but in general you can remove a few lines from the home-manager example:
{ pkgs, ... }:
let
doom-emacs = pkgs.callPackage (builtins.fetchTarball {
url = https://github.com/nix-community/nix-doom-emacs/archive/master.tar.gz;
}) {
doomPrivateDir = ./doom.d; # Directory containing your config.el init.el
# and packages.el files
};
-in {
+in doom-emacs
- home.packages = [ doom-emacs ];
-}
Crap. I can't stop the urge to figure it out.. Here's a broken patch that should give you a base to work off of.
from nix-doom-emacs.
I tried this:
{
description = "shaunsingh's doom emacs configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
emacs.url = "github:cmacrae/emacs";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ self
, nixpkgs
, emacs
, flake-utils
, nix-doom-emacs
}:
flake-utils.lib.eachDefaultSystem (system:
let
overlays = [ (import emacs) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in
with pkgs;
{
defaultPackage = nix-doom-emacs.package.${system} { doomPrivateDir = ./.; };
}
);
}
nix build
works fine, so that's a start
nix run
Results in this error: error: unable to execute '/nix/store/2yzavm1d79qwk52mb99bvlhsw1bffp0p-emacs-with-packages-27.2/bin/emacs-with-packages': No such file or directory
Is it possible to change what emacs package nix-doom-emacs is using as well, from the overlay I'm using (or from the emacs-overlay
nix-doom-emacs uses)? I didn't find anything in the README
from nix-doom-emacs.
nix build
works fine, so that's a start
Yay! (^:
nix run
Results in this error
It should be running /nix/store/blahblah/bin/emacs
instead. Not sure how you make Nix do that.
Is it possible to change what emacs package nix-doom-emacs is using as well
Sure, pass this in alongside doomPrivateDir
: (my usage here)
emacsPackages = emacsOverlay.emacsPackagesFor someEmacsPackage;
from nix-doom-emacs.
It seems like I have answered everything
from nix-doom-emacs.
@shaunsingh's flake.nix
above got me building a per-directory emacs
in result/bin
that seems to be responsive to my doom.d
configuration (because I declared coq
in (doom! ... :lang ... coq)
and proof general was installed upon booting up emacs), but it's not doom -- no vim, no themes, no doom home screen.
Here's my repo https://github.com/orbis-tertius/coq-tinyram it seems strange to me.
EDIT: I believe it was an omission from my (doom! ...
declaration that caused this.
from nix-doom-emacs.
So it's good now @quinn-dougherty?
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 16
- 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.