!SlMumQZnFjwLRjWFbW:nixos.org

Nix + Doom Emacs

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

Load older messages


SenderMessageTime
12 Sep 2022
@mon:tchncs.deribosomerocker
In reply to@k0kada:matrix.org
Ok, this is not working, let me fix it
if it requires mkMerge, then I think we should go back to the specialArguments solution since it's really elegant IMO
22:00:21
@k0kada:matrix.orgk0kada (he/him)I mean, one for that config22:00:20
@k0kada:matrix.orgk0kada (he/him) Another one for the nixosConfiguration.${hostname} 22:00:33
@k0kada:matrix.orgk0kada (he/him)I had the brilliant idea to create a function that returned a attrset just to avoid this22:00:51
@ckie:ckie.devmei 🌒&you're supposed to do _module.args in a module now22:00:55
@k0kada:matrix.orgk0kada (he/him)And know I am really lamenting my life choices...22:01:00
@mon:tchncs.deribosomerocker
In reply to@ckie:ckie.dev
you're supposed to do _module.args in a module now
i used to do that but i switched it for specialArguments
22:01:16
@mon:tchncs.deribosomerocker since the latter is much more readable 22:01:26
@ckie:ckie.devmei 🌒& k0kada: that seems probably reasonable 22:01:54
@k0kada:matrix.orgk0kada (he/him)
{
  description = "nix-doom-emacs in NixOS+HM example";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    home-manager.url = "github:nix-community/home-manager";
    nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
  };

  outputs =
    { self
    , nixpkgs
    , home-manager
    , nix-doom-emacs
    , ...
    }:
    {
      nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          home-manager.nixosModules.home-manager
          {
            home-manager.users.exampleUser = { ... }: {
              imports = [ nix-doom-emacs.hmModule ];
              programs.doom-emacs = {
                enable = true;
                doomPrivateDir = true;
              };
            };
          }
        ];
      };
    };
}
22:01:57
@k0kada:matrix.orgk0kada (he/him)This will not work but should at least eval22:02:05
@k0kada:matrix.orgk0kada (he/him)Having a proper example will need much more useless things22:02:14
@mon:tchncs.deribosomerocker oh wait, can't we just add nix-doom-emacs.hmModule to the modules list? 22:02:35
@k0kada:matrix.orgk0kada (he/him) And of course, set doomPrivateDir for something 22:02:36
@ckie:ckie.devmei 🌒&i think it'd be cool if we had a nixos test for fun22:02:41
@k0kada:matrix.orgk0kada (he/him)
In reply to @mon:tchncs.de
oh wait, can't we just add nix-doom-emacs.hmModule to the modules list?
nde.hmModule is a home-manager module
22:02:56
@k0kada:matrix.orgk0kada (he/him)Not a NixOS one22:02:59
@ckie:ckie.devmei 🌒& start graphical doom, nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET 22:03:39
@ckie:ckie.devmei 🌒& * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET 22:03:44
@ckie:ckie.devmei 🌒& * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET \w+\.c RET 22:04:02
@k0kada:matrix.orgk0kada (he/him)If we are talking about things we want to do in the future22:04:08
@k0kada:matrix.orgk0kada (he/him)I want to actually have a proper test22:04:13
@k0kada:matrix.orgk0kada (he/him)Instead of just building Emacs22:04:19
@ckie:ckie.devmei 🌒& * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET \w+\.c RET i K 22:04:24
@k0kada:matrix.orgk0kada (he/him) * Instead of just building doom-emacs22:04:24
@ckie:ckie.devmei 🌒&yeah that's what i meant22:04:28
@k0kada:matrix.orgk0kada (he/him)Ahh, I see22:04:35
@k0kada:matrix.orgk0kada (he/him)Yeah22:04:37
@ckie:ckie.devmei 🌒&could even try out the lsp!22:04:38
@k0kada:matrix.orgk0kada (he/him)We definitively need this :P22:04:43

Show newer messages


Back to Room ListRoom Version: 9