mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-06 04:50:13 +01:00
chore: run nix fmt
This commit is contained in:
parent
786bbcf03a
commit
2c3d04ec90
30
flake.nix
30
flake.nix
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user