Skip to content

Commit f6c4aa8

Browse files
committed
build(nix): Introduce flake.formatter for nix fmt
1 parent 15499eb commit f6c4aa8

File tree

7 files changed

+282
-195
lines changed

7 files changed

+282
-195
lines changed

.devops/nix/devshells.nix

+4-7
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
perSystem =
33
{ config, lib, ... }:
44
{
5-
devShells =
6-
lib.concatMapAttrs
7-
(name: package: {
8-
${name} = package.passthru.shell;
9-
${name + "-extra"} = package.passthru.shell-extra;
10-
})
11-
config.packages;
5+
devShells = lib.concatMapAttrs (name: package: {
6+
${name} = package.passthru.shell;
7+
${name + "-extra"} = package.passthru.shell-extra;
8+
}) config.packages;
129
};
1310
}

.devops/nix/nixpkgs-instances.nix

+8-10
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,14 @@
2626
config.cudaSupport = true;
2727
config.allowUnfreePredicate =
2828
p:
29-
builtins.all
30-
(
31-
license:
32-
license.free
33-
|| builtins.elem license.shortName [
34-
"CUDA EULA"
35-
"cuDNN EULA"
36-
]
37-
)
38-
(p.meta.licenses or [ p.meta.license ]);
29+
builtins.all (
30+
license:
31+
license.free
32+
|| builtins.elem license.shortName [
33+
"CUDA EULA"
34+
"cuDNN EULA"
35+
]
36+
) (p.meta.licenses or [ p.meta.license ]);
3937
};
4038
# Ensure dependencies use ROCm consistently
4139
pkgsRocm = import inputs.nixpkgs {

0 commit comments

Comments
 (0)