feat: prepare for treefmt-nix

This commit is contained in:
steveej 2024-11-14 14:47:14 +01:00
parent 7c9b745a3e
commit 80250b0179
4 changed files with 28 additions and 2 deletions

View file

@ -11,7 +11,7 @@
},
"formatting": {
"command": [
"alejandra",
"treefmt-nix",
]
}
}

21
flake.lock generated
View file

@ -1080,6 +1080,7 @@
"rperf": "rperf",
"sops-nix": "sops-nix",
"srvos": "srvos",
"treefmt-nix": "treefmt-nix_4",
"x13s-bt-firmware": "x13s-bt-firmware",
"yofi": "yofi"
}
@ -1316,6 +1317,26 @@
"type": "github"
}
},
"treefmt-nix_4": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1730321837,
"narHash": "sha256-vK+a09qq19QNu2MlLcvN4qcRctJbqWkX7ahgPZ/+maI=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "746901bb8dba96d154b66492a29f5db0693dbfcc",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"x13s-bt-firmware": {
"flake": false,
"locked": {

View file

@ -125,6 +125,10 @@
url = "github:nix-community/nixvim/nixos-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs @ {
@ -325,7 +329,7 @@
'';
};
formatter = pkgs.alejandra;
formatter = inputs.treefmt-nix.formatter.${system};
devShells = let
all = import ./nix/devShells.nix {

View file

@ -24,6 +24,7 @@ in {
self'.devShells.install
];
packages = with pkgs; [
self'.formatter
inputs'.colmena.packages.colmena
dconf2nix
inputs'.nixos-anywhere.packages.nixos-anywhere