Skip to content

Commit

Permalink
docs: cleanup IFD module code example
Browse files Browse the repository at this point in the history
Seems spotify-player doesn't required IFD either as it's source is from
a builtin
  • Loading branch information
getchoo committed Aug 23, 2024
1 parent c381c53 commit 20442a9
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 26 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,24 @@ For [standalone installations](https://nix-community.github.io/home-manager/inde

- Q: **"How do I fix the error: ... during evaluation because the option 'allow-import-from-derivation' is disabled"**\
A: Some ports need to read and/or manipulate remote resources, resulting in Nix performing [IFD](https://nix.dev/manual/nix/latest/language/import-from-derivation).

<details>
<summary>Disable modules that use IFD</summary>

```nix
programs = {
cava.catppuccin.enable = false;
gh-dash.catppuccin.enable = false;
imv.catppuccin.enable = false;
kitty.catppuccin.enable = false; # IFD is introduced by home-manager
spotify-player.catppuccin.enable = false;
swaylock.catppuccin.enable = false;
};
services = {
mako.catppuccin.enable = false;
};
{
programs = {
cava.catppuccin.enable = false;
gh-dash.catppuccin.enable = false;
imv.catppuccin.enable = false;
kitty.catppuccin.enable = false; # IFD is introduced by home-manager
swaylock.catppuccin.enable = false;
};
services = {
mako.catppuccin.enable = false;
};
}
```
</details>

Expand Down
28 changes: 15 additions & 13 deletions docs/src/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,23 @@

- Q: **"How do I fix the error: ... during evaluation because the option 'allow-import-from-derivation' is disabled"**\
A: Some ports need to read and/or manipulate remote resources, resulting in Nix performing [IFD](https://nix.dev/manual/nix/latest/language/import-from-derivation).

<details>
<summary>Disable modules that use IFD</summary>

```nix
programs = {
cava.catppuccin.enable = false;
gh-dash.catppuccin.enable = false;
imv.catppuccin.enable = false;
kitty.catppuccin.enable = false; # IFD is introduced by home-manager
spotify-player.catppuccin.enable = false;
swaylock.catppuccin.enable = false;
};
services = {
mako.catppuccin.enable = false;
};
{
programs = {
cava.catppuccin.enable = false;
gh-dash.catppuccin.enable = false;
imv.catppuccin.enable = false;
kitty.catppuccin.enable = false; # IFD is introduced by home-manager
swaylock.catppuccin.enable = false;
};
services = {
mako.catppuccin.enable = false;
};
}
```
</details>

0 comments on commit 20442a9

Please sign in to comment.