Skip to content

bug: needless copy of nixpkgs #435

@nrdxp

Description

@nrdxp

This line here:

merge = loc: defs: (import "${config.nixpkgs}/nixos/lib/eval-config.nix" {

Causes a needless recopying of nixpkgs to the store, even if it is already in the store. This is due to nix's behavior when using a path in interpolation. It automatically imports any interpolated paths to the /nix/store (strange I know, but that's what it does).

it's possible simply changing to:
import (config.nixpkgs + "/nixos/lib/eval-config.nix") would work, but I'll test a patch to make sure before submitting.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions