1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

Use map without the namespace

This commit is contained in:
RGBCube 2024-01-27 21:31:00 +03:00
parent 24660866db
commit 72f2a46835
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -156,7 +156,7 @@
}); });
defaultConfiguration = { defaultConfiguration = {
age.identityPaths = builtins.map (user: "/home/${user}/.ssh/id") users.all; age.identityPaths = map (user: "/home/${user}/.ssh/id") users.all;
home-manager.users = lib.genAttrs users.all (_: {}); home-manager.users = lib.genAttrs users.all (_: {});
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;

View file

@ -27,7 +27,7 @@
args = [ "fmt" "-" "--ext" language ]; args = [ "fmt" "-" "--ext" language ];
}; };
denoFormatterLanguages = builtins.map (name: { denoFormatterLanguages = map (name: {
inherit name; inherit name;
auto-format = true; auto-format = true;
@ -39,7 +39,7 @@
args = [ "--parser" language ]; args = [ "--parser" language ];
}; };
prettierLanguages = builtins.map (name: { prettierLanguages = map (name: {
inherit name; inherit name;
auto-format = true; auto-format = true;

View file

@ -2,7 +2,7 @@
systemConfiguration { systemConfiguration {
age.secrets = lib.genAttrs age.secrets = lib.genAttrs
(builtins.map (map
(lib.removeSuffix ".age") (lib.removeSuffix ".age")
(builtins.attrNames (builtins.attrNames
(builtins.removeAttrs (import ./secrets.nix) [ "keys" ]))) (builtins.removeAttrs (import ./secrets.nix) [ "keys" ])))