stylix icon indicating copy to clipboard operation
stylix copied to clipboard

`nix-on-droid` example not working

Open ComputeDragon opened this issue 4 months ago • 2 comments

I encountered

       Failed assertions:
       - In a flake setup, the options nixpkgs.* should not be used. Instead, rely on the provided flake outputs and pass in the necessary nixpkgs object.

that seems to originate from https://github.com/nix-community/nix-on-droid/blob/27696cac81d4444319bb9158037b0da45e213f5e/modules/default.nix#L25

Steps to reproduce

  1. Copy the contents of https://nix-community.github.io/stylix/installation.html#nix-on-droid into flake.nix
  2. Copy the contents of https://github.com/nix-community/nix-on-droid/blob/master/templates/minimal/nix-on-droid.nix into nix-on-droid.nix
  3. Run nix-on-droid build --flake . The above assertion is thrown.
  4. Rewove the line stylix.nixOnDroidModules.stylix in flake.nix
  5. Repeat step 3. The build is successful.

ComputeDragon avatar Aug 03 '25 14:08 ComputeDragon

cc @brckd

setting config.stylix.overlays.enable to false should fix this, but that should probably be documented.

0xda157 avatar Aug 03 '25 23:08 0xda157

Noted! I'm currently on vacation, but I'll come back to this in a week.

brckd avatar Aug 04 '25 14:08 brckd