-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
41 lines (39 loc) · 1.23 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
description = "Project-W is a service that converts uploaded audio files into downloadable text transcripts using OpenAIs whisper AI model, hosted on a backend server and dedicated runners.";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
pre-commit-hooks = {
url = "github:cachix/git-hooks.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs@{ nixpkgs, systems, ... }:
let
pythonOverlay = import ./nix/overlay.nix;
eachSystem = nixpkgs.lib.genAttrs (import systems);
pkgsFor = eachSystem (
system:
import nixpkgs {
inherit system;
#overlays add all new packages and their dependencies
overlays = [ pythonOverlay ];
}
);
in
{
packages = eachSystem (system: rec {
default = project-W;
project-W = pkgsFor.${system}.python3Packages.project-W;
});
devShells = eachSystem (system: {
default = import ./nix/shell.nix {
inherit inputs system;
pkgs = pkgsFor.${system};
};
});
nixosModules.default = import ./nix/module.nix inputs;
overlays.default = pythonOverlay;
};
}