Reformat nix source file using nixfmt

This commit is contained in:
ulic-youthlic 2025-07-13 06:04:55 +08:00
parent 2e4a532958
commit 9201969c1b
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
220 changed files with 3169 additions and 2487 deletions

View file

@ -5,47 +5,52 @@
url = "github:numtide/flake-utils";
};
};
outputs = {
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachDefaultSystem (system: let
inherit (pkgs) lib;
pkgs = import nixpkgs {
inherit system;
config = {
cudaSupport = true;
allowUnfree = true;
outputs =
{
flake-utils,
nixpkgs,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
inherit (pkgs) lib;
pkgs = import nixpkgs {
inherit system;
config = {
cudaSupport = true;
allowUnfree = true;
};
};
};
defaultPython = pkgs.python3;
in {
formatter = pkgs.alejandra;
devShells.default = pkgs.mkShell {
packages =
(with pkgs; [
ruff
pyright
defaultPython = pkgs.python3;
in
{
formatter = pkgs.alejandra;
devShells.default = pkgs.mkShell {
packages =
(with pkgs; [
ruff
pyright
uv
defaultPython
])
++ (with pkgs.python3Packages; [
pydantic
torchWithCuda
]);
shellHook = ''
uv sync
. ./.venv/bin/activate
'';
env = {
UV_PYTHON_DOWNLOADS = "never";
UV_PYTHON = "${lib.getExe' defaultPython "python"}";
UV_TORCH_BACKEND = "auto";
uv
defaultPython
])
++ (with pkgs.python3Packages; [
pydantic
torchWithCuda
]);
shellHook = ''
uv sync
. ./.venv/bin/activate
'';
env = {
UV_PYTHON_DOWNLOADS = "never";
UV_PYTHON = "${lib.getExe' defaultPython "python"}";
UV_TORCH_BACKEND = "auto";
};
};
};
});
}
);
nixConfig = {
keepOutputs = true;
};