mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-08-13 13:13:36 -05:00
doc: avoid infinite recursion in hmModule (#103)
Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com>
This commit is contained in:
11
README.md
11
README.md
@@ -52,22 +52,25 @@ Using `flake.nix`:
|
|||||||
outputs = {
|
outputs = {
|
||||||
self,
|
self,
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
|
lib,
|
||||||
home-manager,
|
home-manager,
|
||||||
nix-doom-emacs,
|
nix-doom-emacs,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
nixosConfigurations.exampleHost = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.exampleHost = lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
modules = [
|
modules = [
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
{
|
{
|
||||||
home-manager.users.exampleUser = { pkgs, ... }: {
|
home-manager.users.exampleUser = lib.mkMerge [
|
||||||
imports = [ nix-doom-emacs.hmModule ];
|
nix-doom-emacs.hmModule
|
||||||
|
{ ... }: {
|
||||||
programs.doom-emacs = {
|
programs.doom-emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
doomPrivateDir = ./doom.d;
|
doomPrivateDir = ./doom.d;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user