mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-20 01:38:02 +02:00
chore: run nix fmt
This commit is contained in:
parent
786bbcf03a
commit
2c3d04ec90
16
flake.nix
16
flake.nix
@ -40,17 +40,21 @@
|
|||||||
inherit (builtins) listToAttrs map replaceStrings;
|
inherit (builtins) listToAttrs map replaceStrings;
|
||||||
|
|
||||||
nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
|
nameOf = path: replaceStrings [ ".nix" ] [ "" ] (baseNameOf (toString path));
|
||||||
forAllSystems = function:
|
forAllSystems =
|
||||||
|
function:
|
||||||
nixpkgs.lib.genAttrs [
|
nixpkgs.lib.genAttrs [
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
] (system: function nixpkgs.legacyPackages.${system});
|
] (system: function nixpkgs.legacyPackages.${system});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = forAllSystems (pkgs: packagesFromDirectoryRecursive {
|
packages = forAllSystems (
|
||||||
|
pkgs:
|
||||||
|
packagesFromDirectoryRecursive {
|
||||||
callPackage = pkgs.callPackage;
|
callPackage = pkgs.callPackage;
|
||||||
directory = ./packages;
|
directory = ./packages;
|
||||||
});
|
}
|
||||||
|
);
|
||||||
|
|
||||||
nixosModules = listToAttrs (
|
nixosModules = listToAttrs (
|
||||||
map (file: {
|
map (file: {
|
||||||
@ -73,14 +77,16 @@
|
|||||||
}) (listFilesRecursive ./overlays)
|
}) (listFilesRecursive ./overlays)
|
||||||
);
|
);
|
||||||
|
|
||||||
checks.x86_64-linux = listToAttrs (map (file: {
|
checks.x86_64-linux = listToAttrs (
|
||||||
|
map (file: {
|
||||||
name = nameOf file;
|
name = nameOf file;
|
||||||
|
|
||||||
value = import file {
|
value = import file {
|
||||||
inherit self;
|
inherit self;
|
||||||
pkgs = x86_64-linux;
|
pkgs = x86_64-linux;
|
||||||
};
|
};
|
||||||
}) (listFilesRecursive ./tests));
|
}) (listFilesRecursive ./tests)
|
||||||
|
);
|
||||||
|
|
||||||
nixosConfigurations =
|
nixosConfigurations =
|
||||||
let
|
let
|
||||||
|
Loading…
x
Reference in New Issue
Block a user