mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
commit
2b2b874007
|
@ -5,4 +5,4 @@ Getting started Nix template
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
`Getting started Nix template <https://github.com/nix-dot-dev/getting-started-nix-template>`_
|
`Getting started Nix template <https://github.com/nix-dot-dev/getting-started-nix-template>`_
|
||||||
gives you best pratices learned for setting up any kind of a development project using Nix.
|
gives you best practices learned for setting up any kind of development project using Nix.
|
||||||
|
|
|
@ -43,7 +43,7 @@ Docker images:
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If your running **macOS** or any other platform than ``x86_64-linux``, you'll need to either:
|
If you're running **macOS** or any platform other than ``x86_64-linux``, you'll need to either:
|
||||||
|
|
||||||
- `Set up a remote builder <https://github.com/nix-dot-dev/nix.dev/issues/157>`_ to build on Linux
|
- `Set up a remote builder <https://github.com/nix-dot-dev/nix.dev/issues/157>`_ to build on Linux
|
||||||
- :ref:`Cross compile to Linux <cross-compilation>` by replacing ``pkgsLinux.hello`` with ``pkgs.pkgsCross.musl64.hello``
|
- :ref:`Cross compile to Linux <cross-compilation>` by replacing ``pkgsLinux.hello`` with ``pkgs.pkgsCross.musl64.hello``
|
||||||
|
|
|
@ -31,7 +31,7 @@ There's actually a third platform named the target platform.
|
||||||
|
|
||||||
It matters in cases where you'd like to distribute a compiler binary,
|
It matters in cases where you'd like to distribute a compiler binary,
|
||||||
as you'd then like to build a compiler on the build platform, compile code on the
|
as you'd then like to build a compiler on the build platform, compile code on the
|
||||||
host plaform and run the final executable on the target platform.
|
host platform and run the final executable on the target platform.
|
||||||
|
|
||||||
Since that's rarely needed, we'll treat the target platform the same as the host.
|
Since that's rarely needed, we'll treat the target platform the same as the host.
|
||||||
|
|
||||||
|
|
|
@ -194,6 +194,6 @@ Next steps
|
||||||
and reboot to the old configuration if something broke.
|
and reboot to the old configuration if something broke.
|
||||||
|
|
||||||
- To tweak bootloader options affecting hardware, `see config.txt options <https://www.raspberrypi.org/documentation/configuration/config-txt/>`_
|
- To tweak bootloader options affecting hardware, `see config.txt options <https://www.raspberrypi.org/documentation/configuration/config-txt/>`_
|
||||||
and change the options by runnning ``mount /dev/disk/by-label/FIRMWARE /mnt`` and opening ``/mnt/config.txt``.
|
and change the options by running ``mount /dev/disk/by-label/FIRMWARE /mnt`` and opening ``/mnt/config.txt``.
|
||||||
|
|
||||||
- To see the power of declarative configuration, try replacing ``xfce`` with ``kodi`` in ``/etc/nixos/configuration.nix`` and ``reboot``.
|
- To see the power of declarative configuration, try replacing ``xfce`` with ``kodi`` in ``/etc/nixos/configuration.nix`` and ``reboot``.
|
||||||
|
|
Loading…
Reference in a new issue