mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
Avoid repeated keys
This commit is contained in:
parent
53d90bee5a
commit
94e52b022b
12 changed files with 143 additions and 114 deletions
|
|
@ -6,16 +6,10 @@
|
|||
checks = {
|
||||
treefmt = (import ./treefmt.nix { inherit inputs pkgs; }).check self;
|
||||
|
||||
statix =
|
||||
let
|
||||
statix-config = pkgs.writeText "statix.toml" ''
|
||||
disabled = ["repeated_keys"]
|
||||
'';
|
||||
in
|
||||
pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
|
||||
statix check ${self} --config ${statix-config}
|
||||
mkdir $out
|
||||
'';
|
||||
statix = pkgs.runCommand "statix" { buildInputs = [ pkgs.statix ]; } ''
|
||||
statix check ${self}
|
||||
mkdir $out
|
||||
'';
|
||||
|
||||
deadnix = pkgs.runCommand "deadnix" { buildInputs = [ pkgs.deadnix ]; } ''
|
||||
deadnix ${self} --fail --exclude ${self}/flake/formatter.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue