| 12 Sep 2022 |
k0kada (he/him) | In reply to @ckie:ckie.dev config.networking.hostName! Not this | 22:00:09 |
ribosomerocker | 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 (he/him) | I mean, one for that config | 22:00:20 |
k0kada (he/him) | Another one for the nixosConfiguration.${hostname} | 22:00:33 |
k0kada (he/him) | I had the brilliant idea to create a function that returned a attrset just to avoid this | 22:00:51 |
mei 🌒& | 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 |
mei 🌒& | 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 |
mei 🌒& | 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 |
mei 🌒& | start graphical doom, nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET | 22:03:39 |
mei 🌒& | * nix-shell '<nixpkgs>' --run unpackPhase -A hello emacs SPC pp hello RET | 22:03:44 |
mei 🌒& | * 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 |
mei 🌒& | * 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 |
mei 🌒& | 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 |
mei 🌒& | could even try out the lsp! | 22:04:38 |