{ description = "An air quality monitoring service with a Raspberry Pi and a SDS011 sensor."; inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; flake-parts.url = "github:hercules-ci/flake-parts"; }; outputs = { self, flake-parts, ... } @ inputs: flake-parts.lib.mkFlake {inherit inputs;} { imports = [./nix/tests]; systems = ["x86_64-linux" "aarch64-linux"]; perSystem = { self', pkgs, ... }: { formatter = pkgs.alejandra; packages = { pi-air-quality-monitor = pkgs.callPackage ./nix/default.nix {}; default = self'.packages.pi-air-quality-monitor; }; }; flake = { nixosModules = { pi-air-quality-monitor = import ./nix/module.nix self; default = self.nixosModules.pi-air-quality-monitor; }; }; }; }