!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

226 Members
Running Doom Emacs with Nix | You probably want https://github.com/nix-community/nix-doom-emacs49 Servers

Load older messages


SenderMessageTime
12 Oct 2022
@k0kada:matrix.orgk0kada (he/him)
In reply to @ckie:ckie.dev
fmouse was like that
Oh nice, looks kinda like those vim extensions for browser
19:57:16
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)mhm19:57:28
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)i don't use it that much19:57:33
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)but like, i wanted to draw some text and that was the most surprising/complex thing19:57:52
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)after getting confused by the pango docs i ended up just stealing a little monospace 8x8 font from some old embedded thing and sticking it in19:58:28
@k0kada:matrix.orgk0kada (he/him)
In reply to @k0kada:matrix.org
Still, really need to learn one more systems language while I still like programming lol
Someday I need to rewrite my i3 status bar generator in one of those languages
20:03:16
@k0kada:matrix.orgk0kada (he/him)It had a really nice design, everything was async and based on block updates20:03:41
@k0kada:matrix.orgk0kada (he/him)But since it was in Python, the CPU usage ended too high for just scrapping a few information from the system and outputing json20:04:18
* @ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) yawns20:05:18
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred)played Stray a bit earlier, was nice 20:05:30
@k0kada:matrix.orgk0kada (he/him)Need to go back to Tales of Arise20:06:22
@k0kada:matrix.orgk0kada (he/him)I just started Tsukihime Remake though20:06:34
@k0kada:matrix.orgk0kada (he/him)
In reply to @k0kada:matrix.org
It had a really nice design, everything was async and based on block updates
BTW, it was completely overkill for the job too. Kinda did just to prove it would work :P
20:13:46
@k0kada:matrix.orgk0kada (he/him)
In reply to @k0kada:matrix.org
It had a really nice design, everything was async and based on block updates
* BTW, it was completely overkill design for the job too. Kinda did just to prove it would work :P
20:13:56
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred):p20:22:28
13 Oct 2022
@hab25:matrix.org@hab25:matrix.org Hi all, if I have working a nix-doom-emacs setup and I want to add org-transclusion, which is in elpa but not part of a doom module, it is as simple as adding (package! org-transclusion) to my package.el, right? 15:05:24
@hab25:matrix.org@hab25:matrix.orgI'm having an error at installPhase15:06:24
@hab25:matrix.org@hab25:matrix.org * Hi all, if I have working a nix-doom-emacs setup and I want to add org-transclusion, which is in elpa but not part of a doom module, I just as add (package! org-transclusion) to my package.el, right? 15:07:02
@hab25:matrix.org@hab25:matrix.org *

This gives me an error at installPhase:

@nix { "action": "setPhase", "phase": "installPhase" }
installing
Parsing tar file...
Parsing tar file...done
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  tar--describe-as-link(nil)
  tar--check-descriptor(nil)
  tar-get-file-descriptor("org-transclusion-1.3.0/org-transclusion-pkg.el")
  package-tar-file-info()
  (if (derived-mode-p 'tar-mode) (package-tar-file-info) (package-buffer-info))
  (let ((pkg-desc (if (derived-mode-p 'tar-mode) (package-tar-file-info) (package-buffer-info)))) (package-unpack pkg-desc) pkg-desc)
  elpa2nix-install-from-buffer()
  (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer))
  (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))
  (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))
  (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer)))))
  (let ((is-tar (string-match "\\.tar\\'" file))) (let ((temp-buffer (generate-new-buffer " *temp*" t))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (if is-tar (insert-file-contents-literally file) (insert-file-contents file)) (if is-tar (progn (tar-mode))) (elpa2nix-install-from-buffer)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))))))
  elpa2nix-install-file("/nix/store/pkyxjznv0hg33x6x27j7pgkgjyhwmnrk-org-tr...")
  (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))
  (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive)))
  (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))))
  (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive)))))
  (if (consp x1) (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))))))
  (let* ((x0 (car-safe command-line-args-left)) (x1 (cdr-safe command-line-args-left))) (if (consp x1) (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive)))))))
  (if (consp command-line-args-left) (let* ((x0 (car-safe command-line-args-left)) (x1 (cdr-safe command-line-args-left))) (if (consp x1) (let* ((x2 (car-safe x1)) (x3 (cdr-safe x1))) (if (null x3) (let ((archive x0) (elpa x2)) (progn (setq package-user-dir elpa) (elpa2nix-install-file archive))))))))
  elpa2nix-install-package()
  command-line-1(("-l" "/nix/store/4jj63z4v1xp13rh2md053dccq920hd45-elpa2n..." "-f" "elpa2nix-install-package" "/nix/store/pkyxjznv0hg33x6x27j7pgkgjyhwmnrk-org-tr..." "/nix/store/6ikrz0plmbgkrlsmynzgydr2lsyil7h6-emacs-..."))
  command-line()
  normal-top-level()
15:07:43
@hab25:matrix.org@hab25:matrix.org I believe the error is closely related to package-tar-file-info(): I inspected /nix/store/pkyxjznv0hg33x6x27j7pgkgjyhwmnrk-org-transclusion-1.3.0.tar (reference in the log at line 27), and there is no org-transclusion-pkg.el file inside it. There is a org-transclusion.el, though. 15:11:45
14 Oct 2022
@hexagonk:halogen.cityhexagonkRe: NDE issue#302: I've been running into this the past few days. It feels like it's related to mismatches between component versions, since everything was working fine until recently, and reverting my flake doesn't resolve the issue. I'm trying to work through changelogs and see if I can bisect a commit that introduced the error.00:34:42
@hexagonk:halogen.cityhexagonk(I am not reporter of the issue, just saw it and was very relieved to know I might not be going crazy. Yet.)00:35:18
@ckie:ckie.devckie (they/them; limited keyboard usage, voice preferred) the nix cli for managing flake.locks is weird 07:36:25
@sg-qwt:nltrix.net@sg-qwt:nltrix.net joined the room.15:46:49
@sg-qwt:nltrix.net@sg-qwt:nltrix.net

hi folks, I've got a pretty basic fresh setup from master nix-doom-emacs and master emacs-overlay like below, nothing fancy

programs.doom-emacs =  {
        enable = true;
        doomPrivateDir = ../config/doom-emacs;
        emacsPackage = pkgs.emacsPgtkNativeComp; 
     }

on fresh emacs load, I've got Error (doom-init-ui-hook): Error running hook "+doom-dashboard-init-h" because: (void-function doom-modeline-set-project-modeline) , I also noticed magit status dose not startup due to similar error function is void: doom-modeline-set-vcs-modeline

does anyone encounter same issue here or know how to fix this?

16:25:34
@sg-qwt:nltrix.net@sg-qwt:nltrix.net *

hi folks, I've got a pretty basic fresh setup from master nix-doom-emacs and master emacs-overlay like below, nothing fancy

programs.doom-emacs =  {
        enable = true;
        doomPrivateDir = ../config/doom-emacs;
        emacsPackage = pkgs.emacsPgtkNativeComp; 
     }

on fresh doom emacs start, I've got Error (doom-init-ui-hook): Error running hook "+doom-dashboard-init-h" because: (void-function doom-modeline-set-project-modeline) , I also noticed magit status does not startup due to similar error function is void: doom-modeline-set-vcs-modeline

does anyone encounter same issue here or know how to fix this?

16:26:19
@sg-qwt:nltrix.net@sg-qwt:nltrix.net I'm fairly new to doom (coming from spacemacs :D), my doom config is grabbed fresh from https://github.com/doomemacs/doomemacs/tree/master/templates, so I guess that's not relevant. I guess this error is related to NativeComp? However, when I nixos-rebuild and switch, everything seems build fine and no errors pop up. 16:33:51
@hab25:matrix.org@hab25:matrix.org
In reply to @sg-qwt:nltrix.net

hi folks, I've got a pretty basic fresh setup from master nix-doom-emacs and master emacs-overlay like below, nothing fancy

programs.doom-emacs =  {
        enable = true;
        doomPrivateDir = ../config/doom-emacs;
        emacsPackage = pkgs.emacsPgtkNativeComp; 
     }

on fresh doom emacs start, I've got Error (doom-init-ui-hook): Error running hook "+doom-dashboard-init-h" because: (void-function doom-modeline-set-project-modeline) , I also noticed magit status does not startup due to similar error function is void: doom-modeline-set-vcs-modeline

does anyone encounter same issue here or know how to fix this?

I encountered both issues. My workaround was to disable the dashboard and modeline doom modules in init.el.
20:23:31
@sg-qwt:nltrix.net@sg-qwt:nltrix.net
In reply to @hab25:matrix.org
I encountered both issues. My workaround was to disable the dashboard and modeline doom modules in init.el.

haha..that's what i currently done..

on a deep thought though, there's logic error for my current flake dependency layout:

    emacs = {
      url = "github:nix-community/emacs-overlay";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    
    nix-doom-emacs = {
      url = "github:nix-community/nix-doom-emacs";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.emacs-overlay.follows = "emacs";
    };

ideally, emacs would follow nix-doom-emacs.inputs.emacs-overlay, not the other way around, not sure if that's causing the problem though..

20:26:34
@hab25:matrix.org@hab25:matrix.org

I'm not using emacs-overlay at all; I don't think it's related to that.

PS: Though it seems that most flakes-supporting projects recommend it, I think using follows is a bad idea, unless you are willing to sacrifice stability for faster builds. The reason is, when you do this you are overriding the pins that the developers tested with. Big disclaimer: I'm new to flakes.

20:37:26

Show newer messages


Back to Room ListRoom Version: 9