mirror of
https://github.com/nix-community/nix-doom-emacs
synced 2025-09-08 15:23:36 -05:00
README: adding install instructions to use flakes
This commit is contained in:
35
README.md
35
README.md
@@ -33,6 +33,41 @@ in {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Using `flake.nix`:
|
||||||
|
|
||||||
|
``` nix
|
||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
home-manager.url = "github:rycee/home-manager";
|
||||||
|
nix-doom-emacs.url = "github:vlaci/nix-doom-emacs/flake";
|
||||||
|
};
|
||||||
|
|
||||||
|
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 = { pkgs, ... }: {
|
||||||
|
imports = [ nix-doom-emacs.hmModule ];
|
||||||
|
home.doom-emacs = {
|
||||||
|
enable = true;
|
||||||
|
doomPrivateDir = ./doom.d;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Under the hood
|
## Under the hood
|
||||||
|
|
||||||
This expression leverages
|
This expression leverages
|
||||||
|
Reference in New Issue
Block a user