mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
refactor: normalize usage of lib and builtins namespaces
This commit is contained in:
parent
043a996319
commit
062fd5de0b
17 changed files with 24 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
"sidebar.revamp" = false;
|
||||
};
|
||||
|
||||
extraConfig = builtins.readFile "${inputs.betterfox}/user.js";
|
||||
extraConfig = lib.readFile "${inputs.betterfox}/user.js";
|
||||
};
|
||||
|
||||
policies.ExtensionSettings =
|
||||
|
|
|
|||
|
|
@ -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"; };
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue