You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
{ |
|
description = "meterriblecrew.net package flake"; |
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-21.05-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 = { |
|
ryzenSMU = import ./modules/ryzenSMU; |
|
|
|
servicesNavidrome = import ./modules/services/navidrome.nix; |
|
servicesSnipeIT = import ./modules/services/snipe-it.nix; |
|
}; |
|
|
|
packages = forAllSystems (system: import ./. { |
|
pkgs = import nixpkgs { inherit system; config = { allowUnfree = true; }; }; |
|
}); |
|
|
|
overlay = next: prev: |
|
let localPkgs = import ./. { pkgs = next; }; |
|
in { |
|
inherit (localPkgs) |
|
janus-gateway |
|
nextcloud-spreed-signaling |
|
snipe-it |
|
; |
|
} // prev.lib.optionalAttrs (prev.system == "x86_64-linux") rec { |
|
inherit (localPkgs) |
|
chrysalis-bin |
|
navidrome-bin |
|
ryzenadj |
|
ryzen_smu |
|
; |
|
} // prev.lib.optionalAttrs (builtins.elem prev.system prev.lib.platforms.linux) rec { |
|
inherit (localPkgs) |
|
xmm7360-pci |
|
xmm7360-pci-tools |
|
; |
|
}; |
|
|
|
}; |
|
|
|
}
|
|
|