feat: introduce treefmt and fmt all

This commit is contained in:
steveej 2024-11-15 10:17:56 +01:00
parent 80250b0179
commit 27c6c4f9fa
237 changed files with 5440 additions and 5214 deletions

View file

@ -3,17 +3,17 @@
pkgs,
lib,
...
}: let
pkgsUnstable = import nodeFlake.inputs.nixpkgs-unstable {inherit (pkgs) system config;};
in {
}:
let
pkgsUnstable = import nodeFlake.inputs.nixpkgs-unstable { inherit (pkgs) system config; };
in
{
nix.daemonCPUSchedPolicy = "idle";
nix.daemonIOSchedClass = "idle";
nix.settings.max-jobs = lib.mkDefault "auto";
nix.settings.cores = lib.mkDefault 0;
nix.settings.sandbox = true;
nix.nixPath = [
"nixpkgs=${pkgs.path}"
];
nix.nixPath = [ "nixpkgs=${pkgs.path}" ];
nix.settings.experimental-features = [
"nix-command"
@ -32,7 +32,7 @@ in {
nix.registry.nixpkgs.to = {
type = "path";
path = nodeFlake.inputs.nixpkgs.outPath;
narHash = nodeFlake.inputs.nixpkgs.narHash;
inherit (nodeFlake.inputs.nixpkgs) narHash;
};
nix.package = pkgsUnstable.nixVersions.latest;