refactor: normalize usage of lib and builtins namespaces

This commit is contained in:
SebastianStork 2025-07-22 22:58:18 +02:00
parent 043a996319
commit 062fd5de0b
17 changed files with 24 additions and 24 deletions

View file

@ -51,8 +51,8 @@
# Switch workspace
${lib.concatMapStringsSep "\n" (n: ''
bind = SUPER, ${toString n}, focusworkspaceoncurrentmonitor, ${toString n}
bind = SUPER SHIFT, ${toString n}, movetoworkspacesilent, ${toString n}
bind = SUPER, ${builtins.toString n}, focusworkspaceoncurrentmonitor, ${builtins.toString n}
bind = SUPER SHIFT, ${builtins.toString n}, movetoworkspacesilent, ${builtins.toString n}
'') (lib.range 1 9)}
# Manage session

View file

@ -35,7 +35,7 @@
"sidebar.revamp" = false;
};
extraConfig = builtins.readFile "${inputs.betterfox}/user.js";
extraConfig = lib.readFile "${inputs.betterfox}/user.js";
};
policies.ExtensionSettings =

View file

@ -19,7 +19,7 @@
let
aliasList = lib.mapCartesianProduct ({ a, b, c }: a + b + c) { a = ["ll" "lt" "l"]; b = ["" "a"]; c = ["" "d" "f"]; };
eza = "eza --header --group --time-style=long-iso --group-directories-first --sort=name --icons=auto --git --git-repos-no-status --binary ";
convertAliasToCmd = str: eza + (builtins.replaceStrings ["ll" "lt" "l" "a" "d" "f"] ["--long " "--tree " "--oneline --dereference " "--all " "--only-dirs " "--only-files "] str);
convertAliasToCmd = str: eza + (lib.replaceStrings ["ll" "lt" "l" "a" "d" "f"] ["--long " "--tree " "--oneline --dereference " "--all " "--only-dirs " "--only-files "] str);
in
(lib.genAttrs aliasList convertAliasToCmd) // { ls = "l"; };

View file

@ -29,7 +29,7 @@ in
};
secrets = lib.mkOption {
type = lib.types.anything;
default = absoluteSecretsPath |> builtins.readFile |> builtins.fromJSON;
default = absoluteSecretsPath |> lib.readFile |> lib.strings.fromJSON;
};
};