-
Notifications
You must be signed in to change notification settings - Fork 308
Expand file tree
/
Copy pathflake.nix
More file actions
44 lines (39 loc) · 1.17 KB
/
flake.nix
File metadata and controls
44 lines (39 loc) · 1.17 KB
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
42
43
44
{
description = "TorrServer - Simple and powerful tool for streaming torrents";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";
};
outputs =
{
self,
nixpkgs,
systems,
...
}:
let
inherit (nixpkgs) lib;
eachSystem = f: lib.genAttrs (import systems) (system: f nixpkgs.legacyPackages.${system});
in
{
formatter = eachSystem (pkgs: pkgs.alejandra);
devShells = eachSystem (pkgs: {
default = pkgs.mkShell {
name = "torrserver";
inputsFrom = [ self.packages.${pkgs.stdenv.system}.torrserver ];
};
});
packages = eachSystem (pkgs: {
default = self.packages.${pkgs.stdenv.system}.torrserver;
torrserver = pkgs.callPackage ./nix/packages/torrserver.nix { };
});
homeModules = {
default = self.homeModules.torrserver;
torrserver = import ./nix/modules/home-manager.nix { inherit self; };
};
nixosModules = {
default = self.nixosModules.torrserver;
torrserver = import ./nix/modules/nixos.nix { inherit self; };
};
};
}