!ZmUSesoOjmVsKbzFbp:nixos.org

Nix Emacs

747 Members
All things Nix/Emacs! https://github.com/nix-community/emacs-overlay | For Doom Emacs: https://matrix.to/#/#doom-emacs:nixos.org169 Servers

Load older messages


SenderMessageTime
8 Sep 2024
@ezzobirbezziou:matrix.orgEzzobir Bezziouhow can I use emacs-overlay with flakes and home-manager22:16:32
9 Sep 2024
@josh:quadrivium.ukdutchieYou can see my config for an example: https://git.sr.ht/~jshholland/nixos-configs/tree/master/item/flake.nix and https://git.sr.ht/~jshholland/nixos-configs/tree/master/item/home/emacs.nix06:02:34
@eval-on-point:matrix.orgeval-on-pointRedacted or Malformed Event15:35:50
@eval-on-point:matrix.orgeval-on-pointRedacted or Malformed Event15:36:40
@eval-on-point:matrix.orgeval-on-point *

I'm starting to lose a little hair over setting this up. Does anyone see what I am doing wrong here?

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

  outputs =
    { nixpkgs, emacs-overlay, ... }@inputs:
    {
      nixosConfigurations.office = nixpkgs.lib.nixosSystem rec {
        system = "x86_64-linux";
        modules = [
          (
            { pkgs, ... }:
            {
              imports = [ ./hosts/office/hardware-configuration.nix ];
              nixpkgs = {
                inherit system;
                config.allowUnfree = true;
                overlays = [ emacs-overlay.overlay ];
              };
              environment.systemPackages = [
                (pkgs.emacsWithPackagesFromUsePackage { config = ./modules/emacs/lisp/init.el; })
              ];
            }
          )
        ];
      };
    };
}

gives the following error:

       error: function 'anonymous lambda' called with unexpected argument 'nongnuDevelPackages'

       at /nix/store/wzx1ba5hqqfa23vfrvqmfmkpj25p37mr-source/pkgs/top-level/emacs-packages.nix:55:53:

           54|
           55| in makeScope pkgs'.newScope (self: makeOverridable ({
             |                                                     ^
           56|   pkgs ? pkgs'

15:38:23
@eval-on-point:matrix.orgeval-on-point

I'm starting to lose a little hair over setting this up. Does anyone see what I am doing wrong here?

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

  outputs =
    { nixpkgs, emacs-overlay, ... }@inputs:
    {
      nixosConfigurations.office = nixpkgs.lib.nixosSystem rec {
        system = "x86_64-linux";
        modules = [
          (
            { pkgs, ... }:
            {
              imports = [ ./hosts/office/hardware-configuration.nix ];
              nixpkgs = {
                inherit system;
                config.allowUnfree = true;
                overlays = [ emacs-overlay.overlay ];
              };
              environment.systemPackages = [
                (pkgs.emacsWithPackagesFromUsePackage { config = ./modules/emacs/lisp/init.el; })
              ];
            }
          )
        ];
      };
    };
}

gives the following error:

       error: function 'anonymous lambda' called with unexpected argument 'nongnuDevelPackages'

       at /nix/store/wzx1ba5hqqfa23vfrvqmfmkpj25p37mr-source/pkgs/top-level/emacs-packages.nix:55:53:

           54|
           55| in makeScope pkgs'.newScope (self: makeOverridable ({
             |                                                     ^
           56|   pkgs ? pkgs'

(sorry for the message spam, not used to Matrix yet)

15:40:12
@eval-on-point:matrix.orgeval-on-point *

I'm starting to lose a little hair over setting emacs-overlay up. Does anyone see what I am doing wrong here?

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

  outputs =
    { nixpkgs, emacs-overlay, ... }@inputs:
    {
      nixosConfigurations.office = nixpkgs.lib.nixosSystem rec {
        system = "x86_64-linux";
        modules = [
          (
            { pkgs, ... }:
            {
              imports = [ ./hosts/office/hardware-configuration.nix ];
              nixpkgs = {
                inherit system;
                config.allowUnfree = true;
                overlays = [ emacs-overlay.overlay ];
              };
              environment.systemPackages = [
                (pkgs.emacsWithPackagesFromUsePackage { config = ./modules/emacs/lisp/init.el; })
              ];
            }
          )
        ];
      };
    };
}

gives the following error:

       error: function 'anonymous lambda' called with unexpected argument 'nongnuDevelPackages'

       at /nix/store/wzx1ba5hqqfa23vfrvqmfmkpj25p37mr-source/pkgs/top-level/emacs-packages.nix:55:53:

           54|
           55| in makeScope pkgs'.newScope (self: makeOverridable ({
             |                                                     ^
           56|   pkgs ? pkgs'

(sorry for the message spam, not used to Matrix yet)

15:40:29
@me:linj.techlinj @eval-on-point:matrix.org: looks like your nixpkgs is too old (or emacs-overlay is too new) 15:44:02
@eval-on-point:matrix.orgeval-on-point
In reply to @me:linj.tech
@eval-on-point:matrix.org: looks like your nixpkgs is too old (or emacs-overlay is too new)
NO WAY. That fixed it. I didn't realize that you had to be on nixpkgs-unstable, no explicit mention of that in the emacs-overlay readme. Thank you so so much
15:50:32
@me:linj.techlinj a new enough stable release such as nixos-24.05 also works 15:52:11
@eval-on-point:matrix.orgeval-on-point
In reply to @me:linj.tech
a new enough stable release such as nixos-24.05 also works
I am not sure that is true. The above example seems to break on the latest 24.05. I just ran nix flake update before attempting a build to double check
15:59:33
@me:linj.techlinjwhat is nixpkgs/24.05?16:01:42
@me:linj.techlinj there is no such channel in status.nixos.org 16:02:05
@eval-on-point:matrix.orgeval-on-point Yup, I just realized that lol. That is the wrong branch! It appears to work on nixos-24.05. Sorry for the thick head, that was the root of my error 16:02:27
10 Sep 2024
@ezzobirbezziou:matrix.orgEzzobir Bezziouhi can I configure chemacs2 using nixos ????15:04:39
@hastur:sigint.clubszatang changed their profile picture.15:13:11
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~A lost their email!" u)) "Artur Manuel" to Artur Manuel (on break).17:33:09
@artur:glasgow.social(artur 'manuel) changed their profile picture.17:35:32
@artur:glasgow.social(artur 'manuel) changed their display name from Artur Manuel (on break) to (lambda (u) (format nil "~A is not using Matrix right now." u)) "Artur Manuel".17:37:10
@0x4d0n1s:matrix.org0x4d0n1s joined the room.18:56:13
@ian:graham.tokyoian left the room.20:09:24
11 Sep 2024
@bmgsh:matrix.orgbmgshI see that 30.0.9 has been tagged and the unstable overlay now points there. How brave do you need to be to take it as a daily driver?05:10:11
12 Sep 2024
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~A is not using Matrix right now." u)) "Artur Manuel" to (lambda (u) (format nil "~a ~a")) "Artur" "Manuel".01:49:40
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (u) (format nil "~a ~a")) "Artur" "Manuel" to (lambda (f l) (format nil "~a ~a")) "Artur" "Manuel".01:56:25
@gyara:matrix.org~ギャラ joined the room.09:22:31
15 Sep 2024
@magic_rb:matrix.redalder.orgmagic_rb
In reply to @bmgsh:matrix.org
I see that 30.0.9 has been tagged and the unstable overlay now points there. How brave do you need to be to take it as a daily driver?
not that brave, i personally run a random commit from master, have been for years and its been mostly fine. sometimes there is a commit thats horribly broken but then i just rollback
20:37:52
@bandithedoge:matrix.orgbandithedoge
In reply to @bmgsh:matrix.org
I see that 30.0.9 has been tagged and the unstable overlay now points there. How brave do you need to be to take it as a daily driver?
i've always been using the latest unstable and it's just fine
20:56:21
@bandithedoge:matrix.orgbandithedogeemacs is generally very stable in terms of master commits breaking things20:57:24
16 Sep 2024
@miangraham:matrix.org@miangraham:matrix.org left the room.02:47:15
@ian:graham.tokyoian joined the room.15:56:17

Show newer messages


Back to Room ListRoom Version: 6