unfree license, refusing to evaluate #48

Closed
opened 2023-09-15 21:32:00 +00:00 by j0lol · 1 comment
j0lol commented 2023-09-15 21:32:00 +00:00 (Migrated from github.com)

Nixinate remote push failed because of an unfree package in an overlay at flake root, unsure how to workaround.

Here's the offending line (and flake):
13ffa42276/flake.nix (L87)

And the error:

🚀 Deploying nixosConfigurations.j0-laptop from /nix/store/x1amzn456dvdybcb2f65hj5zk66dyf4m-source
👤 SSH User: jo
🌐 SSH Host: 100.110.59.89
🔨 Building system closure locally, copying it to remote store and activating it:
+ NIX_SSHOPTS=-t
+ /nix/store/f5c6kjnh9439gdx3ds2smjmg0fck7szq-flock-0.2.3/bin/flock -w 60 /dev/shm/nixinate-j0-laptop /nix/store/cagvpvsk0w0crv7bg58si15mmzsf8zzs-nixos-rebuild/bin/nixos-rebuild switch --flake /nix/store/x1amzn456dvdybcb2f65hj5zk66dyf4m-source#j0-laptop --target-host jo@100.110.59.89 --use-remote-sudo
building the system configuration...
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05
trace: warning: mdadm: Neither MAILADDR nor PROGRAM has been set. This will cause the `mdmon` service to crash.
error: Package ‘tetrio-desktop-8.0.0’ in /nix/store/iarm76b9p60gbkxs0n3dww1r2f4gs650-source/pkgs/games/tetrio-desktop/default.nix:86 has an unfree license (‘unfree’), refusing to evaluate.

       a) To temporarily allow unfree packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNFREE=1

        Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
        (Flake) command, `--impure` must be passed in order to read this
        environment variable.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowUnfree = true; }
       in configuration.nix to override this.

       Alternatively you can configure a predicate to allow specific packages:
         { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
             "tetrio-desktop"
           ];
         }

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnfree = true; }
       to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
Nixinate remote push failed because of an unfree package in an overlay at flake root, unsure how to workaround. Here's the offending line (and flake): https://codeberg.org/j0/configuration2/src/commit/13ffa4227609006149dfc53445a56dfdd7b3fd6c/flake.nix#L87 And the error: ``` 🚀 Deploying nixosConfigurations.j0-laptop from /nix/store/x1amzn456dvdybcb2f65hj5zk66dyf4m-source 👤 SSH User: jo 🌐 SSH Host: 100.110.59.89 🔨 Building system closure locally, copying it to remote store and activating it: + NIX_SSHOPTS=-t + /nix/store/f5c6kjnh9439gdx3ds2smjmg0fck7szq-flock-0.2.3/bin/flock -w 60 /dev/shm/nixinate-j0-laptop /nix/store/cagvpvsk0w0crv7bg58si15mmzsf8zzs-nixos-rebuild/bin/nixos-rebuild switch --flake /nix/store/x1amzn456dvdybcb2f65hj5zk66dyf4m-source#j0-laptop --target-host jo@100.110.59.89 --use-remote-sudo building the system configuration... trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05 trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05 trace: warning: optionsDocBook is deprecated since 23.11 and will be removed in 24.05 trace: warning: mdadm: Neither MAILADDR nor PROGRAM has been set. This will cause the `mdmon` service to crash. error: Package ‘tetrio-desktop-8.0.0’ in /nix/store/iarm76b9p60gbkxs0n3dww1r2f4gs650-source/pkgs/games/tetrio-desktop/default.nix:86 has an unfree license (‘unfree’), refusing to evaluate. a) To temporarily allow unfree packages, you can use an environment variable for a single invocation of the nix tools. $ export NIXPKGS_ALLOW_UNFREE=1 Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+ (Flake) command, `--impure` must be passed in order to read this environment variable. b) For `nixos-rebuild` you can set { nixpkgs.config.allowUnfree = true; } in configuration.nix to override this. Alternatively you can configure a predicate to allow specific packages: { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "tetrio-desktop" ]; } c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add { allowUnfree = true; } to ~/.config/nixpkgs/config.nix. (use '--show-trace' to show detailed location information) ```

Closed due to fork migartion, feel free to reopen.

Closed due to fork migartion, feel free to reopen.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tristan/nixinate#48
No description provided.