Switch formatting to nixfmt-tree
Some checks failed
CI / build (push) Failing after 1m37s

This commit is contained in:
Fabian Hauser 2025-03-20 13:40:57 +02:00
parent d54febbb87
commit d01da714fa
2 changed files with 2 additions and 9 deletions

View file

@ -9,12 +9,7 @@
${system} = {
# Check project formatting
format = pkgs.runCommand "nixfmt-check" { } ''
set -euo pipefail
cd ${self}
${self.formatter.${system}}/bin/formatter . --check
mkdir $out
'';
format = self.formatter.${system};
#TODO(#29): Integration/System tests

View file

@ -50,9 +50,7 @@
checks = import ./checks/default.nix importParams;
deploy = import ./deploy/default.nix importParams;
devShells = import ./dev-shells/default.nix importParams;
formatter.${system} = pkgs.writeShellScriptBin "formatter" ''
${pkgs.findutils}/bin/find $1 -type f -name '*.nix' -exec ${pkgs.nixfmt-rfc-style}/bin/nixfmt ''${@:2} {} +
'';
formatter.${system} = pkgs.nixfmt-tree;
nixosConfigurations = import ./nixos-configurations/default.nix importParams;
nixosModules = import ./nixos-modules/default.nix importParams;
packages = import ./packages/default.nix importParams;