refactor: replace mapAttrs' with mapAttrs

This commit is contained in:
Ryan Yin
2023-12-22 01:43:28 +08:00
parent e4abf62ec3
commit 8ac24e4f13
5 changed files with 23 additions and 28 deletions

View File

@@ -1,5 +1,10 @@
let
systemAttrs = {
rec {
# user information
username = "ryan";
userfullname = "Ryan Yin";
useremail = "xiaoyin_c@qq.com";
allSystemAttrs = {
# linux systems
x64_system = "x86_64-linux";
riscv64_system = "riscv64-linux";
@@ -8,12 +13,5 @@ let
x64_darwin = "x86_64-darwin";
aarch64_darwin = "aarch64-darwin";
};
in systemAttrs // {
# user information
username = "ryan";
userfullname = "Ryan Yin";
useremail = "xiaoyin_c@qq.com";
inherit systemAttrs;
allSystems = builtins.attrValues systemAttrs;
allSystems = builtins.attrValues allSystemAttrs;
}