mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-12 07:32:40 +02:00
fix: statix fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -14,6 +14,6 @@ in {
|
|||||||
};
|
};
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
envExtra = envExtra;
|
inherit envExtra;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+4
-4
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user