From 31a3be0c5f5455435369ef99d25a612bbcfcb282 Mon Sep 17 00:00:00 2001 From: "Janik H." Date: Thu, 15 Feb 2024 22:35:27 +0100 Subject: [PATCH] make statix happy? --- .github/workflows/ci.yaml | 5 ++--- modules/devices.nix | 3 ++- modules/domains.nix | 3 ++- modules/ip-addresses.nix | 3 ++- utils/networking.nix | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index a318995..31bfd01 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,9 +19,8 @@ jobs: # - name: "Run unit-tests" # run: nix run github:nix-community/nix-unit -- --flake .#tests - # statix currently crashes on ./modules for some unknown to me reason - # - name: "Do linting" - # run: nix run nixpkgs#statix -- check . + - name: "Do linting" + run: nix run nixpkgs#statix -- check . - name: "Check formatting" run: nix fmt -- --check . diff --git a/modules/devices.nix b/modules/devices.nix index 8b13789..c404e5a 100644 --- a/modules/devices.nix +++ b/modules/devices.nix @@ -1 +1,2 @@ - +{ utils, lib }: +{ } diff --git a/modules/domains.nix b/modules/domains.nix index 8b13789..c404e5a 100644 --- a/modules/domains.nix +++ b/modules/domains.nix @@ -1 +1,2 @@ - +{ utils, lib }: +{ } diff --git a/modules/ip-addresses.nix b/modules/ip-addresses.nix index 8b13789..c404e5a 100644 --- a/modules/ip-addresses.nix +++ b/modules/ip-addresses.nix @@ -1 +1,2 @@ - +{ utils, lib }: +{ } diff --git a/utils/networking.nix b/utils/networking.nix index 35b835c..9fa7154 100644 --- a/utils/networking.nix +++ b/utils/networking.nix @@ -20,7 +20,7 @@ in lib.throwIf (from > to) "the second input has to be larger then the first one, otherwise you have a negative range which is impossible or not a range." helper - { list = [ ]; counter = (to - from); } + { list = [ ]; counter = to - from; } ; }; }