# Remove \_\_allowFileset?

**URL:** https://discourse.nixos.org/t/remove-allowfileset/78735
**Category:** Nixpkgs Architecture
**Created:** [July 3, 2026, 11:47am UTC](https://discourse.nixos.org/t/remove-allowfileset/78735 "2026-07-03T11:47:22Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 3, 2026, 11:47am UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/1 "2026-07-03T11:47:22Z")

</div>

`pkgs/top-level/default.nix` contains

```nix
  # Temporary hack to let Nixpkgs forbid internal use of `lib.fileset`
  # until <https://github.com/NixOS/nix/issues/11503> is fixed.
  __allowFileset ? true,

```

The issue was fixed 16 months ago. Shouldn’t we remove this “temporary hack”?

---

<div class="post-metadata">

### Author: ![ElvishJerricco](https://discourse.nixos.org/user_avatar/discourse.nixos.org/elvishjerricco/32/984_2.png) [@ElvishJerricco](https://discourse.nixos.org/u/ElvishJerricco)
#### Post date: [July 3, 2026, 12:00pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/2 "2026-07-03T12:00:47Z")

</div>

IIUC we can’t use filesets in tree until nixpkgs’ minimum supported version of Nix doesn’t have the issue, and IIRC that is not the case.

---

<div class="post-metadata">

### Author: ![xokdvium](https://discourse.nixos.org/user_avatar/discourse.nixos.org/xokdvium/32/32263_2.png) [@xokdvium](https://discourse.nixos.org/u/xokdvium)
#### Post date: [July 3, 2026, 12:08pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/3 "2026-07-03T12:08:23Z")

</div>

Realistically, the min version is about the language semantics - not the actual implementation. Nix \< 2.28 is unsupported, CI doesn’t check against it and nobody will be actually using it, unless they are willing to actually backport security fixes (some stable fedora might be stuck this way).

---

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 3, 2026, 12:09pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/4 "2026-07-03T12:09:47Z")

</div>

Technically, there’s `builtins.langVersion` if you want to check language semantics. So I would say that `builtins.nixVersion` is specifically about implementation.  
And atm, we assert in nixpkgs that `nixVersion` is at least “2.18”.

---

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 3, 2026, 12:15pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/5 "2026-07-03T12:15:09Z")

</div>

We would need to bump required `nixVersion` to “2.27”. I guess that requires coordinating with all distros’ nix package maintainers? I don’t know if there’s some place of contact for that? And who can make a decision of bumping minimal `nixVersion` in nixpkgs?

---

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 3, 2026, 12:16pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/6 "2026-07-03T12:16:20Z")

</div>

Or we could just assume that one year is old enough, and just bump it without coordinating with downstreams.

---

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [July 3, 2026, 2:11pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/7 "2026-07-03T14:11:54Z")

</div>

Cough cough lix exists and split off at 2.18. Let’s please not depend on implementation-specific nonsense.

---

<div class="post-metadata">

### Author: ![xokdvium](https://discourse.nixos.org/user_avatar/discourse.nixos.org/xokdvium/32/32263_2.png) [@xokdvium](https://discourse.nixos.org/u/xokdvium)
#### Post date: [July 3, 2026, 2:19pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/8 "2026-07-03T14:19:52Z")

</div>

The nixVersion is irrelevant because Lix hardcodes it to 2.18. IMO we can just ignore this, bug has been fixed and the immediate fire has been put out and we can just start using the library – installer tests won’t blow up. All supported nix/lix versions now behave sanely under chroot stores.

---

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 4, 2026, 5:20am UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/9 "2026-07-04T05:20:52Z")

</div>

Did someone check if lix doesn’t happen to have the same bug?

---

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 4, 2026, 6:01am UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/10 "2026-07-04T06:01:43Z")

</div>

I ran the reproduction test from the issue on lix 2.94.2 and it doesn’t trigger the issue.

---

<div class="post-metadata">

### Author: ![MrQubo](https://discourse.nixos.org/user_avatar/discourse.nixos.org/mrqubo/32/9752_2.png) [@MrQubo](https://discourse.nixos.org/u/MrQubo)
#### Post date: [July 4, 2026, 6:02am UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/11 "2026-07-04T06:02:12Z")

</div>

> <https://github.com/NixOS/nixpkgs/pull/538311>
>
> This options was created as a workaround for https://github.com/NixOS/nix/issues…/11503. It is no longer needed.
> 
> \## Things done
> 
> 
> 
> \- Built on platform:
> - \[x\] x86\_64-linux
> - \[\] aarch64-linux
> - \[\] aarch64-darwin
> \- Tested, as applicable:
> - \[\] \[NixOS tests\] in \[nixos/tests\].
> - \[\] \[Package tests\] at \`passthru.tests\`.
> - \[\] Tests in \[lib/tests\] or \[pkgs/test\] for functions and "core" functionality.
> \- \[\] Ran \`nixpkgs-review\` on this PR. See \[nixpkgs-review usage\].
> \- \[\] Tested basic functionality of all binary files, usually in \`./result/bin/\`.
> \- Nixpkgs Release Notes
> - \[\] Package update: when the change is major or breaking.
> \- NixOS Release Notes
> - \[\] Module addition: when adding a new NixOS module.
> - \[\] Module update: when the change is significant.
> \- \[x\] Fits \[CONTRIBUTING.md\], \[pkgs/README.md\], \[maintainers/README.md\] and other READMEs.
> \- \[x\] Follows the \[automation/AI policy\].
> 
> \[NixOS tests\]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
> \[Package tests\]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
> \[nixpkgs-review usage\]: https://github.com/Mic92/nixpkgs-review#usage
> 
> \[CONTRIBUTING.md\]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
> \[automation/AI policy\]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
> \[lib/tests\]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
> \[maintainers/README.md\]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
> \[nixos/tests\]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
> \[pkgs/README.md\]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
> \[pkgs/test\]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test

---

<div class="post-metadata">

### Author: ![llakala](https://discourse.nixos.org/user_avatar/discourse.nixos.org/llakala/32/38325_2.png) [@llakala](https://discourse.nixos.org/u/llakala)
#### Post date: [July 4, 2026, 12:01pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/12 "2026-07-04T12:01:57Z")

</div>

Lix fixed it as well. See [the commit](https://git.lix.systems/lix-project/lix/commit/62ee2aea297528568098bae103e9a3af7658b4b5).

---

<div class="post-metadata">

### Author: ![yuriko\_diaz](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/y/258eb7/32.png) [@yuriko\_diaz](https://discourse.nixos.org/u/yuriko_diaz)
#### Post date: [July 21, 2026, 3:40pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/13 "2026-07-21T15:40:19Z")

</div>

if we’re just gonna ignore it, might as well remove it entirely instead of leaving dead code in the tree. just noise at that point.

---

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [July 21, 2026, 3:55pm UTC](https://discourse.nixos.org/t/remove-allowfileset/78735/14 "2026-07-21T15:55:44Z")

</div>

That’s what the PR does… did you read it?

> <https://github.com/NixOS/nixpkgs/blob/3ab67da54c3be3ac6d3f86adef9d1a9c3444f616/pkgs/top-level/default.nix#L67-L69>
