mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 15:38:26 +01:00
Compare commits
2 commits
54433591bf
...
ac225efa0b
| Author | SHA1 | Date | |
|---|---|---|---|
| ac225efa0b | |||
| 7d1a0087da |
2 changed files with 8 additions and 2 deletions
|
|
@ -4,7 +4,10 @@
|
|||
{ inputs', pkgs, ... }:
|
||||
{
|
||||
checks = {
|
||||
formatting = (inputs.treefmt.lib.evalModule pkgs "${self}/treefmt.nix").config.build.check self;
|
||||
formatting =
|
||||
"${self}/treefmt.nix"
|
||||
|> inputs.treefmt.lib.evalModule pkgs
|
||||
|> (formatter: formatter.config.build.check self);
|
||||
|
||||
statix = pkgs.runCommand "statix" { buildInputs = [ inputs'.statix.packages.statix ]; } ''
|
||||
statix check ${self}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
perSystem =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
formatter = (inputs.treefmt.lib.evalModule pkgs "${self}/treefmt.nix").config.build.wrapper;
|
||||
formatter =
|
||||
"${self}/treefmt.nix"
|
||||
|> inputs.treefmt.lib.evalModule pkgs
|
||||
|> (formatter: formatter.config.build.wrapper);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue