2021-03-13 21:34:32 +01:00
|
|
|
{
|
|
|
|
description = "meterriblecrew.net package flake";
|
|
|
|
|
2021-08-09 00:10:24 +02:00
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05-small";
|
2021-03-13 21:34:32 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2021-08-29 23:05:59 +02:00
|
|
|
servicesNavidrome = import ./modules/services/navidrome.nix;
|
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 ./. {
|
2021-09-09 00:14:32 +02:00
|
|
|
pkgs = import nixpkgs { inherit system; config = { allowUnfree = true; }; };
|
2021-03-13 21:34:32 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
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
|
2021-03-13 21:45:49 +01:00
|
|
|
nextcloud-spreed-signaling
|
2021-08-09 00:22:47 +02:00
|
|
|
snipe-it
|
2021-03-13 21:38:33 +01:00
|
|
|
;
|
2021-09-09 00:14:32 +02:00
|
|
|
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") rec {
|
2021-03-18 22:42:40 +01:00
|
|
|
inherit (localPkgs)
|
2021-08-09 00:22:47 +02:00
|
|
|
chrysalis-bin
|
2021-08-29 23:00:06 +02:00
|
|
|
navidrome-bin
|
2021-03-18 22:42:40 +01:00
|
|
|
ryzenadj
|
2021-03-19 00:39:45 +01:00
|
|
|
ryzen_smu
|
2021-09-09 00:14:32 +02:00
|
|
|
vivaldi
|
2021-03-18 22:42:40 +01:00
|
|
|
;
|
2021-09-16 23:47:15 +02:00
|
|
|
} // prev.lib.optionalAttrs (builtins.elem prev.system prev.lib.platforms.linux) rec {
|
|
|
|
inherit (localPkgs)
|
|
|
|
xmm7360-pci
|
|
|
|
xmm7360-pci-tools
|
|
|
|
;
|
2021-03-13 21:34:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|