chore: run nix fmt

This commit is contained in:
Donovan Glover 2024-10-09 19:51:53 -04:00
parent 786bbcf03a
commit 2c3d04ec90
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -40,17 +40,21 @@
inherit (builtins) listToAttrs map replaceStrings;
nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
forAllSystems = function:
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
] (system: function nixpkgs.legacyPackages.${system});
in
{
packages = forAllSystems (pkgs: packagesFromDirectoryRecursive {
callPackage = pkgs.callPackage;
directory = ./packages;
});
packages = forAllSystems (
pkgs:
packagesFromDirectoryRecursive {
callPackage = pkgs.callPackage;
directory = ./packages;
}
);
nixosModules = listToAttrs (
map (file: {
@ -73,14 +77,16 @@
}) (listFilesRecursive ./overlays)
);
checks.x86_64-linux = listToAttrs (map (file: {
name = nameOf file;
checks.x86_64-linux = listToAttrs (
map (file: {
name = nameOf file;
value = import file {
inherit self;
pkgs = x86_64-linux;
};
}) (listFilesRecursive ./tests));
value = import file {
inherit self;
pkgs = x86_64-linux;
};
}) (listFilesRecursive ./tests)
);
nixosConfigurations =
let