mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
refactor: replace mapAttrs' with mapAttrs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user