formatter + nixConfig
This commit is contained in:
parent
90f07dfe93
commit
32ff8d2574
20
flake.nix
20
flake.nix
@ -1,4 +1,9 @@
|
||||
{
|
||||
nixConfig = {
|
||||
trusted-substituters = "https://cache.nixos.org/";
|
||||
trusted-public-keys = "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=";
|
||||
extra-experimental-features = "nix-command flakes";
|
||||
};
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small";
|
||||
flake-compat = {
|
||||
@ -7,13 +12,15 @@
|
||||
};
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
outputs = { nixpkgs, flake-utils, ... }:
|
||||
flake-utils.lib.eachDefaultSystem (system:
|
||||
let
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
...
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
devDeps = with pkgs; [bash hugo zopfli brotli parallel];
|
||||
in
|
||||
{
|
||||
in {
|
||||
devShells.default = pkgs.mkShell {
|
||||
name = "rules_nixpkgs_shell";
|
||||
packages = devDeps;
|
||||
@ -23,5 +30,8 @@
|
||||
#packages = flake-utils.lib.mkApp {
|
||||
# name = "build
|
||||
#};
|
||||
|
||||
formatter = pkgs.alejandra;
|
||||
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user