nix-builder-autoscaler/flake.nix
2026-02-27 10:25:17 +01:00

51 lines
1.3 KiB
Nix

{
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1";
outputs =
{ self, nixpkgs }:
let
systems = [
"x86_64-linux"
];
forAllSystems = fn: nixpkgs.lib.genAttrs systems (system: fn nixpkgs.legacyPackages.${system});
in
{
#packages = forAllSystems (pkgs: {
# default = pkgs.callPackage ./package.nix { };
#});
checks = forAllSystems (pkgs: {
# todo add tests
devShell = self.devShells.${pkgs.stdenv.hostPlatform.system}.default;
}
# future nixos test
# // pkgs.lib.optionalAttrs pkgs.stdenv.isLinux {
# nixos-module = pkgs.testers.runNixOSTest (import ./nixos-test.nix self);
# }
);
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
# TODO populate devshell for the project
];
};
});
# TODO export module
# nixosModules = {
# default =
# {
# config,
# lib,
# pkgs,
# ...
# }:
# {
# imports = [ ./nixos-module.nix ];
# services.TODSERVICENAME.package =
# lib.mkDefault
# self.packages.${pkgs.stdenv.hostPlatform.system}.default;
# };
# };
};
}