fix: statix fix

This commit is contained in:
Ryan Yin
2024-01-21 17:07:44 +08:00
parent 68e5d860d8
commit cba3212896
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{pkgs-unstable, ...}: let {pkgs-unstable, ...}: let
nu_scripts = pkgs-unstable.nu_scripts; inherit (pkgs-unstable) nu_scripts;
in { in {
programs.bash = { programs.bash = {
# load the alias file for work # load the alias file for work
+1 -1
View File
@@ -12,7 +12,7 @@ in {
programs.nushell = { programs.nushell = {
enable = true; enable = true;
configFile.source = ./config.nu; configFile.source = ./config.nu;
shellAliases = shellAliases; inherit shellAliases;
}; };
programs.bash = { programs.bash = {
+1 -1
View File
@@ -14,6 +14,6 @@ in {
}; };
programs.zsh = { programs.zsh = {
enable = true; enable = true;
envExtra = envExtra; inherit envExtra;
}; };
} }
+4 -4
View File
@@ -12,7 +12,7 @@
# (name: value: ("bar-" + value)) # (name: value: ("bar-" + value))
# { x = "a"; y = "b"; } # { x = "a"; y = "b"; }
# => { foo = "bar-a"; foo = "bar-b"; } # => { foo = "bar-a"; foo = "bar-b"; }
mapAttrs = lib.attrsets.mapAttrs; inherit (lib.attrsets) mapAttrs;
# Update both the names and values of the given attribute set. # Update both the names and values of the given attribute set.
# #
@@ -20,7 +20,7 @@
# (name: value: nameValuePair ("foo_" + name) ("bar-" + value)) # (name: value: nameValuePair ("foo_" + name) ("bar-" + value))
# { x = "a"; y = "b"; } # { x = "a"; y = "b"; }
# => { foo_x = "bar-a"; foo_y = "bar-b"; } # => { foo_x = "bar-a"; foo_y = "bar-b"; }
mapAttrs' = lib.attrsets.mapAttrs'; inherit (lib.attrsets) mapAttrs';
# Merge a list of attribute sets into one. smilar to the operator `a // b`, but for a list of attribute sets. # Merge a list of attribute sets into one. smilar to the operator `a // b`, but for a list of attribute sets.
# NOTE: the later attribute set overrides the former one! # NOTE: the later attribute set overrides the former one!
@@ -28,7 +28,7 @@
# mergeAttrsList # mergeAttrsList
# [ { x = "a"; y = "b"; } { x = "c"; z = "d"; } { g = "e"; } ] # [ { x = "a"; y = "b"; } { x = "c"; z = "d"; } { g = "e"; } ]
# => { x = "c"; y = "b"; z = "d"; g = "e"; } # => { x = "c"; y = "b"; z = "d"; g = "e"; }
mergeAttrsList = lib.attrsets.mergeAttrsList; inherit (lib.attrsets) mergeAttrsList;
# Generate a string from an attribute set. # Generate a string from an attribute set.
# #
@@ -42,5 +42,5 @@
# export x=a # export x=a
# export y=b # export y=b
# ```` # ````
foldlAttrs = lib.attrsets.foldlAttrs; inherit (lib.attrsets) foldlAttrs;
} }