2023-03-18 11:00:49 +00:00
|
|
|
{
|
|
|
|
description = "Lenticular cloud interface";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
2023-09-30 10:58:24 +00:00
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
flake-compat = { # for shell.nix
|
2023-03-18 11:00:49 +00:00
|
|
|
url = "github:edolstra/flake-compat";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
nix-node-package = {
|
|
|
|
url = "github:mkg20001/nix-node-package";
|
|
|
|
flake = false;
|
|
|
|
};
|
|
|
|
};
|
2023-09-30 10:58:24 +00:00
|
|
|
outputs = { self, nixpkgs, nix-node-package, flake-utils, ... }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system}.extend (import ./overlay.nix);
|
|
|
|
in rec {
|
|
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
|
|
devShells.default = pkgs.python3.withPackages (ps: (
|
|
|
|
pkgs.lenticular-cloud.propagatedBuildInputs ++
|
|
|
|
pkgs.lenticular-cloud.testBuildInputs
|
|
|
|
));
|
|
|
|
|
|
|
|
packages.default = pkgs.lenticular-cloud;
|
|
|
|
|
|
|
|
checks = {
|
|
|
|
package = packages.default;
|
|
|
|
devShells = devShells.default;
|
2023-03-18 11:00:49 +00:00
|
|
|
};
|
2023-09-30 10:58:24 +00:00
|
|
|
}) // {
|
2023-03-18 11:00:49 +00:00
|
|
|
nixosModules = {
|
2023-09-30 10:58:24 +00:00
|
|
|
default = import ./module.nix;
|
|
|
|
};
|
|
|
|
overlays.default = import ./overlay.nix;
|
|
|
|
nixosConfigurations.testSystem = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
self.nixosModules.default
|
|
|
|
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
|
|
|
];
|
2023-03-18 11:00:49 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|