Skip to content

Commit

Permalink
docs: correct use of modules over imports
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo committed Dec 16, 2023
1 parent 07e54f5 commit b0617ee
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
home-manager.nixosModules.home-manager
{
home-manager.users.user = {
modules = [
imports = [
./home.nix
catppuccin.homeManagerModules.catppuccin
];
};
Expand Down Expand Up @@ -97,14 +98,14 @@ sudo nix-channel --update
For [NixOS module installations](https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module):

```nix
_: {
{
imports = [
<home-manager/nixos>
<catppuccin/modules/nixos>
];
home-manager.users.user = {
modules = [
imports = [
<catppuccin/modules/home-manager>
];
};
Expand All @@ -115,7 +116,7 @@ _: {
For [standalone installations](https://nix-community.github.io/home-manager/index.html#sec-install-standalone)

```nix
_: {
{
imports = [
<catppuccin/modules/home-manager>
];
Expand All @@ -131,15 +132,15 @@ _: {
2. Choose your desired flavour with `catppuccin.flavour`

```nix
_: {
{
catppuccin.flavour = "mocha";
}
```

3. Enable for supported programs with `catppucin.enable = true;`

```nix
_: {
{
programs.starship = {
enable = true;
catppuccin.enable = true;
Expand Down

0 comments on commit b0617ee

Please sign in to comment.