1
0
Fork 0
packages/flake.nix

57 lines
1.3 KiB
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-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
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 ./. {
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
nextcloud-spreed-signaling
snipe-it
2021-03-13 21:38:33 +01:00
;
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") rec {
2021-03-18 22:42:40 +01:00
inherit (localPkgs)
chrysalis-bin
navidrome-bin
2021-03-18 22:42:40 +01:00
ryzenadj
2021-03-19 00:39:45 +01:00
ryzen_smu
vivaldi
2021-03-18 22:42:40 +01: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
};
};
}