Giter VIP home page Giter VIP logo

Comments (7)

quinn-dougherty avatar quinn-dougherty commented on September 27, 2024 1

Yes everything is great, thanks.

from nix-doom-emacs.

ckiee avatar ckiee commented on September 27, 2024

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.

shaunsingh avatar shaunsingh commented on September 27, 2024

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.

ckiee avatar ckiee commented on September 27, 2024

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.

ckiee avatar ckiee commented on September 27, 2024

It seems like I have answered everything

from nix-doom-emacs.

quinn-dougherty avatar quinn-dougherty commented on September 27, 2024

@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.

ckiee avatar ckiee commented on September 27, 2024

So it's good now @quinn-dougherty?

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.