Revert "fix: Remove |> operator to fix ci"

This reverts commit 6a7b5838bc.
This commit is contained in:
ulic-youthlic 2025-11-08 03:53:33 +08:00
parent ff78d71406
commit 4205a8bcb3
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
13 changed files with 122 additions and 167 deletions

View file

@ -9,15 +9,13 @@
{
config = {
environment.etc =
with lib;
pipe inputs [
(mapAttrs' (
name: value:
lib.nameValuePair "nix/inputs/${name}" {
source = value;
}
))
];
inputs
|> lib.mapAttrs' (
name: value:
lib.nameValuePair "nix/inputs/${name}" {
source = value;
}
);
nixpkgs = {
config = {
allowUnfree = true;
@ -74,7 +72,9 @@
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"
@ -85,17 +85,15 @@
};
package = pkgs.nix;
registry =
with lib;
pipe inputs [
(filterAttrs (name: _value: name != "nixpkgs"))
(mapAttrs (
_name: value: {
flake = lib.mkForce {
outPath = value;
};
}
))
];
inputs
|> lib.filterAttrs (name: _value: name != "nixpkgs")
|> lib.mapAttrs (
_name: value: {
flake = lib.mkForce {
outPath = value;
};
}
);
};
};
}