From 3bcd428c2b569ae0d2e516c1d5c1f2d04eb553fc Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Thu, 13 Mar 2025 09:19:25 +0800 Subject: [PATCH] add pipe feature support for nix --- nixos/modules/nix.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/modules/nix.nix b/nixos/modules/nix.nix index 49243b4..760fd44 100644 --- a/nixos/modules/nix.nix +++ b/nixos/modules/nix.nix @@ -32,10 +32,13 @@ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; auto-optimise-store = lib.mkDefault true; - experimental-features = [ - "nix-command" - "flakes" - ]; + experimental-features = + [ + "nix-command" + "flakes" + ] + ++ (lib.optional config.lix.enable "pipe-operator") + ++ (lib.optional (!config.lix.enable) "pipe-operators"); warn-dirty = false; system-features = [ "kvm"