loomio-nix/flake.nix
2024-08-23 10:24:36 +02:00

28 lines
721 B
Nix

{
description = "The loomio flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = {nixpkgs, flake-utils, ...}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in rec {
packages = rec {
loomio = pkgs.callPackage ./pkg/loomio/default.nix {};
inherit pkgs;
};
}) // {
nixosConfigurations = {
test-vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
(import ./modules/overlay.nix)
./hosts/test/configuration.nix
];
};
};
};
}