lenticular_cloud2/flake.nix

63 lines
1.9 KiB
Nix
Raw Normal View History

2023-03-18 11:00:49 +00:00
{
description = "Lenticular cloud interface";
inputs = {
2023-10-09 19:58:44 +00:00
nixpkgs.url = "nixpkgs/nixos-23.05";
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-10-09 19:58:44 +00:00
tuxpkgs = {
url = "git+ssh://git@git.o-g.at/nixpkg/tuxpkgs.git";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "flake-utils";
};
2023-03-18 11:00:49 +00:00
};
2023-10-09 19:58:44 +00:00
outputs = { self, nixpkgs, nix-node-package, flake-utils, tuxpkgs, ... }:
2023-09-30 10:58:24 +00:00
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system}.extend (import ./overlay.nix);
in rec {
formatter = pkgs.nixpkgs-fmt;
2023-10-09 19:58:44 +00:00
devShells.default = pkgs.mkShell {packages = [
(pkgs.python3.withPackages (ps: (
pkgs.lenticular-cloud.propagatedBuildInputs ++
pkgs.lenticular-cloud.testBuildInputs
)))
];};
2023-09-30 10:58:24 +00:00
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
2023-10-09 19:58:44 +00:00
tuxpkgs.nixosModules.ory-hydra
2023-09-30 10:58:24 +00:00
"${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
2023-10-09 19:58:44 +00:00
({...}:{
services.lenticular-cloud.enable = true;
services.ory-hydra = {
enable = true;
admin_domain = "admin-hydra.local";
};
networking.hosts = {"::1" = [ "admin-hydra.local" ]; };
services.getty.autologinUser = "root";
virtualisation.qemu.options = ["-vga none"];
})
2023-09-30 10:58:24 +00:00
];
2023-03-18 11:00:49 +00:00
};
};
}