parent
4980df6f75
commit
5f644d0ccd
1 changed files with 33 additions and 18 deletions
|
@ -1,23 +1,38 @@
|
||||||
{ 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 =
|
||||||
treefmt.config = {
|
{ pkgs, ... }:
|
||||||
projectRootFile = ".git/config";
|
{
|
||||||
programs.nixfmt.enable = true;
|
treefmt.config = {
|
||||||
|
projectRootFile = ".git/config";
|
||||||
|
programs.nixfmt-rfc-style.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
pre-commit.settings.hooks = {
|
||||||
|
nixfmt-rfc-style.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
formatter = pkgs.nixfmt-rfc-style;
|
||||||
};
|
};
|
||||||
|
|
||||||
pre-commit.settings.hooks = { nixfmt.enable = true; };
|
flake.checks =
|
||||||
|
let
|
||||||
formatter = pkgs.nixfmt-rfc-style;
|
build = _: nc: nc.config.system.build.toplevel;
|
||||||
};
|
in
|
||||||
|
{
|
||||||
flake.checks = let build = _: nc: nc.config.system.build.toplevel;
|
x86_64-linux = lib.mapAttrs build { inherit (self.nixosConfigurations) picard; };
|
||||||
in {
|
aarch64-linux = lib.mapAttrs build {
|
||||||
x86_64-linux =
|
inherit (self.nixosConfigurations) sisko; # pbp;
|
||||||
lib.mapAttrs build { inherit (self.nixosConfigurations) picard; };
|
};
|
||||||
aarch64-linux = lib.mapAttrs build {
|
|
||||||
inherit (self.nixosConfigurations) sisko; # pbp;
|
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue