Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama committed Nov 22, 2024
1 parent 67e4d11 commit 6c792b2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 35 deletions.
58 changes: 29 additions & 29 deletions contrib/callendar-van-dusen-approximator/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};

outputs = inputs:
inputs.flake-parts.lib.mkFlake {inherit inputs;} {
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
];
Expand All @@ -19,34 +20,33 @@
"aarch64-linux"
];

perSystem = {
pkgs,
system,
...
}: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
config.enableCuda = true;
};
perSystem =
{
pkgs,
system,
...
}:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
config.enableCuda = true;
};

devshells.default = {
packages = [
(
pkgs.python3.withPackages (
p:
with p; [
torchWithCuda
scipy
numpy
matplotlib
]
)
)
];
};
devshells.default = {
packages = [
(pkgs.python3.withPackages (
p: with p; [
torchWithCuda
scipy
numpy
matplotlib
]
))
];
};

formatter = pkgs.nixfmt-rfc-style; # `nix fmt`
};
formatter = pkgs.nixfmt-rfc-style; # `nix fmt`
};
};
}
2 changes: 1 addition & 1 deletion examples/esp32/bme280/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
println!("cargo:rustc-link-arg-bins=-Tlinkall.x");
}
}
1 change: 0 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
};

pre-commit.settings.hooks.treefmt.enable = true;

treefmt = {
projectRootFile = "flake.nix";
programs = {
Expand Down
4 changes: 0 additions & 4 deletions statix.toml

This file was deleted.

0 comments on commit 6c792b2

Please sign in to comment.