diff options
| author | seth <[email protected]> | 2023-07-19 22:34:43 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-07-19 22:34:43 -0400 |
| commit | 289b29a976fb37b3f7fe8b152d6bd5c7a132a6a1 (patch) | |
| tree | 23fc520ba073f3a9c4a96faa98903ff6cd922564 /parts | |
| parent | 4f0ec35377dd7b8fafcd128d389e393705426fd1 (diff) | |
parts: cleanup inherits/functions
Diffstat (limited to 'parts')
| -rw-r--r-- | parts/ci.nix | 18 | ||||
| -rw-r--r-- | parts/dev.nix | 11 |
2 files changed, 13 insertions, 16 deletions
diff --git a/parts/ci.nix b/parts/ci.nix index c958ed3..72fc08c 100644 --- a/parts/ci.nix +++ b/parts/ci.nix @@ -1,5 +1,5 @@ { - inputs, + lib, myLib, self, ... @@ -9,15 +9,15 @@ "aarch64-linux" ]; - ci = sys: myLib.ci ["${sys}"]; - hm = sys: (ci sys).mkCompatibleHM self.homeConfigurations; - hosts = sys: (ci sys).mkCompatibleCfg self.nixosConfigurations; + mkChecks = sys: let + ci = myLib.ci [sys]; + in + lib.recursiveUpdate + (ci.mkCompatibleHM self.homeConfigurations).${sys} + (ci.mkCompatibleCfg self.nixosConfigurations); in { flake = { - checks = inputs.nixpkgs.lib.genAttrs ciSystems hosts; - }; - - perSystem = {system, ...}: { - checks = (hm system).${system}; + checks = + lib.genAttrs ciSystems mkChecks; }; } diff --git a/parts/dev.nix b/parts/dev.nix index 5453286..c190008 100644 --- a/parts/dev.nix +++ b/parts/dev.nix @@ -22,18 +22,15 @@ }; }; - devShells = let - inherit (pkgs) mkShell; - in { - default = mkShell { + devShells = { + default = pkgs.mkShell { inherit (self.checks.${system}.pre-commit-check) shellHook; - packages = with pkgs; - with inputs; [ + packages = with pkgs; [ actionlint alejandra deadnix just - ragenix.packages.${system}.ragenix + inputs.ragenix.packages.${system}.ragenix statix stylua ]; |
