From b9f445c7476285d6383626b78fb6fe39de737c56 Mon Sep 17 00:00:00 2001 From: rotterdam Date: Tue, 4 Apr 2023 10:33:16 -0300 Subject: [PATCH] Added aarch64 devShell in preparation for the future --- flake.nix | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index a4b614f..7c7b508 100644 --- a/flake.nix +++ b/flake.nix @@ -128,17 +128,30 @@ }; }; - checks.x86_64-linux = { - pre-commit-check = pre-commit-hooks.lib."x86_64-linux".run { - src = ./.; - hooks = { nixfmt.enable = true; }; + checks = { + "x86_64-linux" = { + pre-commit-check = pre-commit-hooks.lib."x86_64-linux".run { + src = ./.; + hooks = { nixfmt.enable = true; }; + }; + }; + "aarch64-linux" = { + pre-commit-check = pre-commit-hooks.lib."aarch64-linux".run { + src = ./.; + hooks = { nixfmt.enable = true; }; + }; }; }; - devShells.x86_64-linux.default = - nixpkgs.legacyPackages."x86_64-linux".mkShell { + devShells = { + "x86_64-linux".default = nixpkgs.legacyPackages."x86_64-linux".mkShell { inherit (self.checks."x86_64-linux".pre-commit-check) shellHook; }; + "aarch64-linux".default = + nixpkgs.legacyPackages."aarch64-linux".mkShell { + inherit (self.checks."aarch64-linux".pre-commit-check) shellHook; + }; + }; nixosModules.qbittorrent = import ./modules/qbittorrent.nix;