flake: bump

This commit is contained in:
Guanran Wang 2024-11-16 23:24:14 +08:00
parent e1a45246ce
commit b41d552d7a
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
3 changed files with 39 additions and 39 deletions

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1710146030, "lastModified": 1731533236,
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -22,11 +22,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1724395761, "lastModified": 1731531548,
"narHash": "sha256-zRkDV/nbrnp3Y8oCADf5ETl1sDrdmAW6/bBVJ8EbIdQ=", "narHash": "sha256-sz8/v17enkYmfpgeeuyzniGJU0QQBfmAjlemAUYhfy8=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "ae815cee91b417be55d43781eb4b73ae1ecc396c", "rev": "24f0d4acd634792badd6470134c387a3b039dace",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -66,11 +66,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1724338379, "lastModified": 1730321837,
"narHash": "sha256-kKJtaiU5Ou+e/0Qs7SICXF22DLx4V/WhG1P6+k4yeOE=", "narHash": "sha256-vK+a09qq19QNu2MlLcvN4qcRctJbqWkX7ahgPZ/+maI=",
"owner": "numtide", "owner": "numtide",
"repo": "treefmt-nix", "repo": "treefmt-nix",
"rev": "070f834771efa715f3e74cd8ab93ecc96fabc951", "rev": "746901bb8dba96d154b66492a29f5db0693dbfcc",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -17,23 +17,28 @@
systems.url = "github:nix-systems/default"; systems.url = "github:nix-systems/default";
}; };
outputs = inputs: outputs =
inputs.flake-utils.lib.eachDefaultSystem (system: let inputs:
pkgs = inputs.nixpkgs.legacyPackages.${system}; inputs.flake-utils.lib.eachDefaultSystem (
treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix; system:
in { let
### nix fmt pkgs = inputs.nixpkgs.legacyPackages.${system};
formatter = treefmtEval.config.build.wrapper; treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
{
### nix fmt
formatter = treefmtEval.config.build.wrapper;
### nix flake check ### nix flake check
checks.formatting = treefmtEval.config.build.check inputs.self; checks.formatting = treefmtEval.config.build.check inputs.self;
### nix develop ### nix develop
devShells.default = pkgs.mkShellNoCC { devShells.default = pkgs.mkShellNoCC {
packages = with pkgs; [ packages = with pkgs; [
lua-language-server lua-language-server
stylua stylua
]; ];
}; };
}); }
);
} }

View file

@ -1,17 +1,12 @@
{ {
projectRootFile = "flake.nix"; projectRootFile = "flake.nix";
### nix programs = {
programs.deadnix.enable = true; deadnix.enable = true;
programs.statix.enable = true; nixfmt.enable = true;
programs.alejandra.enable = true; prettier.enable = true;
statix.enable = true;
### lua stylua.enable = true;
programs.stylua.enable = true; taplo.enable = true;
};
### toml
programs.taplo.enable = true;
### misc
programs.prettier.enable = true;
} }