1
0
Fork 0
packages/flake.nix

48 lines
1014 B
Nix
Raw Normal View History

2021-03-13 21:34:32 +01:00
{
description = "meterriblecrew.net package flake";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.09-small";
outputs = inputs@{ self, nixpkgs }: let
systems = [
"x86_64-linux"
"i686-linux"
"x86_64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
nixosModules = {
2021-03-19 02:01:55 +01:00
ryzenSMU = import ./modules/ryzenSMU;
2021-04-16 18:00:27 +02:00
servicesSnipeIT = import ./modules/services/snipe-it.nix;
2021-03-13 21:34:32 +01:00
};
packages = forAllSystems (system: import ./. {
pkgs = import nixpkgs { inherit system; };
});
overlay = next: prev:
let localPkgs = import ./. { pkgs = next; };
in {
2021-03-13 21:38:33 +01:00
inherit (localPkgs)
2021-03-13 21:41:47 +01:00
janus-gateway
nextcloud-spreed-signaling
2021-03-13 21:38:33 +01:00
usrsctp
;
2021-03-18 22:42:40 +01:00
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") {
inherit (localPkgs)
ryzenadj
2021-03-19 00:39:45 +01:00
ryzen_smu
2021-03-18 22:42:40 +01:00
;
2021-03-13 21:34:32 +01:00
};
};
}