|
|
Line 15: |
Line 15: |
| }; | | }; |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
| == Troubleshooting ==
| |
|
| |
| === Installing on system without X11 ===
| |
|
| |
| If, when you perform:
| |
|
| |
| <syntaxhighlight lang="bash">
| |
| nixos-rebuild switch
| |
| </syntaxhighlight>
| |
|
| |
| ... you encounter errors like:
| |
|
| |
| <syntaxhighlight lang="bash">
| |
| building Nix...
| |
|
| |
| ...
| |
|
| |
| checking for CAIRO_BACKEND... no
| |
| configure: error: Package requirements (cairo-xlib >= 1.6) were not met:
| |
|
| |
| No package 'cairo-xlib' found
| |
|
| |
| ...
| |
|
| |
| error: build of '/nix/store/vfz...2a0-nixos-system-nixos-21.11pre322478.e4ef597edfd.drv' failed
| |
| </syntaxhighlight>
| |
|
| |
| ... it would be because the package expects X11 to be installed. The [https://nixos.org/manual/nixos/unstable/options.html#opt-environment.noXlibs environment.noXlibs] NixOS option will specify to not require the X11 libraries:
| |
|
| |
| {{file|/etc/nixos/configuration.nix|nix|<nowiki>
| |
| { config, pkgs, ... }:
| |
|
| |
| {
| |
| environment.noXlibs = false;
| |
| }
| |
| </nowiki>}}
| |
|
| |
|
| == Tips and tricks == | | == Tips and tricks == |