From 79721ced092650a785b1b99a2cf6658070f74395 Mon Sep 17 00:00:00 2001 From: Jake Hillion Date: Wed, 28 Dec 2022 13:59:16 +0000 Subject: [PATCH] flake: use formatter --- .drone.yml | 5 ++--- flake.nix | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4cdb444..a33ade9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,8 +7,7 @@ steps: - name: lint image: nixos/nix:2.11.1 commands: - - nix-env -i nixpkgs-fmt - - nixpkgs-fmt . + - nix --extra-experimental-features 'nix-command flakes' fmt - git diff --exit-code - name: check @@ -17,6 +16,6 @@ steps: - nix --extra-experimental-features 'nix-command flakes' flake check --- kind: signature -hmac: 8da1e50adb1f6026681aa44b9705e3d00ea4dbc7a43cee9860622153a630224f +hmac: da929dc55d2e11b17bc29e48293b78ba1e3588df90a87e022e7dc4f1cb40d6e5 ... diff --git a/flake.nix b/flake.nix index 76d5cd5..0b494ca 100644 --- a/flake.nix +++ b/flake.nix @@ -57,5 +57,8 @@ } ]; }; + + formatter."x86_64-linux" = nixpkgs.legacyPackages."x86_64-linux".nixpkgs-fmt; + formatter."aarch64-darwin" = nixpkgs.legacyPackages."aarch64-darwin".nixpkgs-fmt; }; }