feat: my custom libAttrs

This commit is contained in:
Ryan Yin
2023-12-23 10:56:33 +08:00
parent 27dd5ebb13
commit 82cfa4c6f7
6 changed files with 65 additions and 22 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
}: let
constants = import ./constants.nix;
# FYI: `lib.genAttrs [ "foo" "bar" ] (name: "x_" + name)` => `{ foo = "x_foo"; bar = "x_bar"; }`
# `lib.genAttrs [ "foo" "bar" ] (name: "x_" + name)` => `{ foo = "x_foo"; bar = "x_bar"; }`
forEachSystem = func: (nixpkgs.lib.genAttrs constants.allSystems func);
allSystemConfigurations = import ./systems {inherit self inputs constants;};