Windows 10+

  • Minimum Requirements

    • Windows 10 version 2004 (Build 19041 and higher)

    • Quad-core CPU running at 2.0 GHz+

    • 8 GiB of RAM

  • Recommended

    • Windows 11

    • 6th Gen Intel® Core CPU or later OR AMD Ryzen™️ 1000-series or later

    • 16 GiB of RAM

Setting up WSL

  1. Follow official Microsoft documentation for WSL located here to install the WSL 2.

Note

CACE requires WSL2. Make sure that you’re using Windows 11, or Windows 10 is up-to-date.

  1. If you have an installation of WSL2 from 2023 or earlier, follow Microsoft’s official documention to enable systemd

    • systemd is enabled by default for installations of WSL2 from mid-2023 or later.

  2. Click the Windows icon, type in “Windows PowerShell” and open it.

    The Windows 11 Start Menu with "powershell" typed into the search box, showing "Windows PowerShell" as the first match

  3. Install Ubuntu using the following command: wsl --install -d Ubuntu

  4. Check the version of WSL using following command: wsl --list --verbose

    It should produce the following output:

    PS C:\Users\user> wsl --list --verbose
    NAME                   STATE           VERSION
    * Ubuntu                 Running         2
    
  5. Launch “Ubuntu” from your Start Menu.

    The Windows 11 Start Menu showing a search for the "Ubuntu" app, next to which is a window of the Windows Terminal which opens after clicking it

Installing Nix

To install Nix, you first need to install curl:

$ sudo apt-get install -y curl

Then install Nix by running the following command:

$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --no-confirm --extra-conf "
    extra-substituters = https://nix-cache.fossi-foundation.org
    extra-trusted-public-keys = nix-cache.fossi-foundation.org:3+K59iFwXqKsL7BNu6Guy0v+uTlwsxYQxjspXzqLYQs=
"

Enter your password if prompted. This should take around 5 minutes.

Make sure to close the Ubuntu terminal after you’re done with this step and start it again.

If you already have Nix set up…

You will need to enable FOSSi Foundations’s Binary Cache manually.

See https://github.com/fossi-foundation/nix-eda/blob/main/Installation.md for more info.


If you do know what this means, the values are as follows:

extra-substituters = https://nix-cache.fossi-foundation.org
extra-trusted-public-keys = nix-cache.fossi-foundation.org:3+K59iFwXqKsL7BNu6Guy0v+uTlwsxYQxjspXzqLYQs=

Make sure to restart nix-daemon after updating /etc/nix/nix.conf.

$ sudo pkill nix-daemon

Cloning CACE

With git installed, just run the following:

$ git clone https://github.com/fossi-foundation/cace

That’s it. Whenever you want to use CACE, run nix-shell in the repository root directory and you’ll have a full CACE environment. The first time might take around 10 minutes while binaries are pulled from the cache.

To quickly test your installation, simply run cace --help in the nix shell.