nixfmt-rf-style
is now called just nixfmt
This commit is contained in:
parent
2a213c6b28
commit
795b5a05ce
1 changed files with 20 additions and 35 deletions
|
@ -1,40 +1,25 @@
|
||||||
{
|
{ inputs, self, lib, ... }: {
|
||||||
inputs,
|
imports = [ inputs.treefmt-nix.flakeModule inputs.git-hooks-nix.flakeModule ];
|
||||||
self,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
inputs.treefmt-nix.flakeModule
|
|
||||||
inputs.git-hooks-nix.flakeModule
|
|
||||||
];
|
|
||||||
|
|
||||||
perSystem =
|
perSystem = { ... }: {
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
treefmt.config = {
|
treefmt.config = {
|
||||||
projectRootFile = ".git/config";
|
projectRootFile = ".git/config";
|
||||||
programs = {
|
programs = {
|
||||||
nixfmt-rfc-style.enable = true;
|
nixfmt.enable = true;
|
||||||
deadnix.enable = false;
|
deadnix.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
pre-commit.settings.hooks = {
|
pre-commit.settings.hooks = {
|
||||||
nixfmt-rfc-style.enable = true;
|
nixfmt.enable = true;
|
||||||
deadnix.enable = false;
|
deadnix.enable = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.checks =
|
flake.checks = let build = _: nc: nc.config.system.build.toplevel;
|
||||||
let
|
in {
|
||||||
build = _: nc: nc.config.system.build.toplevel;
|
x86_64-linux =
|
||||||
in
|
lib.mapAttrs build { inherit (self.nixosConfigurations) picard; };
|
||||||
{
|
|
||||||
x86_64-linux = lib.mapAttrs build {
|
|
||||||
inherit (self.nixosConfigurations) picard;
|
|
||||||
};
|
|
||||||
aarch64-linux = lib.mapAttrs build {
|
aarch64-linux = lib.mapAttrs build {
|
||||||
inherit (self.nixosConfigurations) sisko; # pbp;
|
inherit (self.nixosConfigurations) sisko; # pbp;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue