Format
Some checks failed
/ test (push) Failing after 37s

This commit is contained in:
Andrea Ciceri 2024-09-20 11:27:36 +02:00
parent 4980df6f75
commit 5f644d0ccd
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg

View file

@ -1,21 +1,36 @@
{ inputs, self, lib, ... }: {
imports = [ inputs.treefmt-nix.flakeModule inputs.git-hooks-nix.flakeModule ];
{
inputs,
self,
lib,
...
}:
{
imports = [
inputs.treefmt-nix.flakeModule
inputs.git-hooks-nix.flakeModule
];
perSystem = { pkgs, ... }: {
perSystem =
{ pkgs, ... }:
{
treefmt.config = {
projectRootFile = ".git/config";
programs.nixfmt.enable = true;
programs.nixfmt-rfc-style.enable = true;
};
pre-commit.settings.hooks = { nixfmt.enable = true; };
pre-commit.settings.hooks = {
nixfmt-rfc-style.enable = true;
};
formatter = pkgs.nixfmt-rfc-style;
};
flake.checks = let build = _: nc: nc.config.system.build.toplevel;
in {
x86_64-linux =
lib.mapAttrs build { inherit (self.nixosConfigurations) picard; };
flake.checks =
let
build = _: nc: nc.config.system.build.toplevel;
in
{
x86_64-linux = lib.mapAttrs build { inherit (self.nixosConfigurations) picard; };
aarch64-linux = lib.mapAttrs build {
inherit (self.nixosConfigurations) sisko; # pbp;
};