Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix-experimental: enable ca-derivations and impure-derivations #485

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
nix-experimental: enable ca-derivations and impure-derivations
Mic92 committed Aug 16, 2024
commit 14cd621d0b8ee811c2a6fd012186ad6e22d5dfdc
10 changes: 10 additions & 0 deletions darwin/mixins/nix-experimental.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,16 @@

# Allow derivation builders to call Nix, and thus build derivations recursively.
"recursive-nix"

# Allow derivations to be content-addressed in order to prevent rebuilds
# when changes to the derivation do not result in changes to the
# derivation's output.
"ca-derivations"

# Allow derivations to produce non-fixed outputs by setting the __impure
# derivation attribute to true. An impure derivation can have differing
# outputs each time it is built.
"impure-derivations"
]
++ lib.optional (lib.versionAtLeast (lib.versions.majorMinor config.nix.package.version) "2.19")
# Allow the use of the impure-env setting.
10 changes: 10 additions & 0 deletions nixos/mixins/nix-experimental.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,16 @@

# Allow derivation builders to call Nix, and thus build derivations recursively.
"recursive-nix"

# Allow derivations to be content-addressed in order to prevent rebuilds
# when changes to the derivation do not result in changes to the
# derivation's output.
"ca-derivations"

# Allow derivations to produce non-fixed outputs by setting the __impure
# derivation attribute to true. An impure derivation can have differing
# outputs each time it is built.
"impure-derivations"
]
++ lib.optional (lib.versionAtLeast (lib.versions.majorMinor config.nix.package.version) "2.19")
# Allow the use of the impure-env setting.