| 12 Sep 2022 |
ckie (they/them) | you're supposed to do _module.args in a module now | 22:00:55 |
k0kada (he/him) | And know I am really lamenting my life choices... | 22:01:00 |
ribosomerocker | 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 |
ribosomerocker | since the latter is much more readable | 22:01:26 |
ckie (they/them) | k0kada: that seems probably reasonable | 22:01:54 |
k0kada (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 (he/him) | This will not work but should at least eval | 22:02:05 |
k0kada (he/him) | Having a proper example will need much more useless things | 22:02:14 |
ribosomerocker | oh wait, can't we just add nix-doom-emacs.hmModule to the modules list? | 22:02:35 |
k0kada (he/him) | And of course, set doomPrivateDir for something | 22:02:36 |
ckie (they/them) | i think it'd be cool if we had a nixos test for fun | 22:02:41 |
k0kada (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 (he/him) | Not a NixOS one | 22:02:59 |
ckie (they/them) | start graphical doom, nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET | 22:03:39 |
ckie (they/them) | * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET | 22:03:44 |
ckie (they/them) | * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET \w+\.c RET | 22:04:02 |
k0kada (he/him) | If we are talking about things we want to do in the future | 22:04:08 |
k0kada (he/him) | I want to actually have a proper test | 22:04:13 |
k0kada (he/him) | Instead of just building Emacs | 22:04:19 |
ckie (they/them) | * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET \w+\.c RET i K | 22:04:24 |
k0kada (he/him) | * Instead of just building doom-emacs | 22:04:24 |
ckie (they/them) | yeah that's what i meant | 22:04:28 |
k0kada (he/him) | Ahh, I see | 22:04:35 |
k0kada (he/him) | Yeah | 22:04:37 |
ckie (they/them) | could even try out the lsp! | 22:04:38 |
k0kada (he/him) | We definitively need this :P | 22:04:43 |
ckie (they/them) | hence the iK | 22:04:43 |
ckie (they/them) | (include all in directory, +lookup/documentation) | 22:05:00 |
k0kada (he/him) | mon_aaraj ckie (they/them) #266 looks mostly fine for me now | 22:08:10 |
ribosomerocker | In reply to@k0kada:matrix.org
> {
> 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;
> };
> };
> }
> ];
> };
> };
> }
> ```
what about this? | 22:08:27 |