docs: correct use of modules over imports

This commit is contained in:
seth 2023-12-16 18:45:45 -05:00
parent 07e54f5b3c
commit b0617ee158
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86

View file

@ -64,7 +64,8 @@
home-manager.nixosModules.home-manager
{
home-manager.users.user = {
modules = [
imports = [
./home.nix
catppuccin.homeManagerModules.catppuccin
];
};
@ -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>
];
};
@ -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>
];
@ -131,7 +132,7 @@ _: {
2. Choose your desired flavour with `catppuccin.flavour`
```nix
_: {
{
catppuccin.flavour = "mocha";
}
```
@ -139,7 +140,7 @@ _: {
3. Enable for supported programs with `catppucin.enable = true;`
```nix
_: {
{
programs.starship = {
enable = true;
catppuccin.enable = true;