mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat(mediabox): wyoming
This commit is contained in:
parent
a5966c0724
commit
a202d0703f
9 changed files with 283 additions and 2 deletions
|
|
@ -20,6 +20,9 @@ _: {
|
|||
enable = true;
|
||||
ports.proxied.enable = true;
|
||||
};
|
||||
piper.enable = true;
|
||||
faster-whisper.enable = true;
|
||||
openwakeword.enable = true;
|
||||
cloudflared.enable = true;
|
||||
plex.enable = true;
|
||||
invidious.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
gensokyo-zone,
|
||||
meta,
|
||||
lib,
|
||||
pkgs,
|
||||
|
|
@ -16,6 +17,20 @@
|
|||
"/mnt/Movies".hostPath = kyuuto.libraryDir + "/movies";
|
||||
"/mnt/Music".hostPath = kyuuto.libraryDir + "/music/assorted";
|
||||
};
|
||||
useZLUDA = false;
|
||||
useRocm = useZLUDA;
|
||||
rocmPackages =
|
||||
if useZLUDA
|
||||
then pkgs.rocmPackages_5
|
||||
else pkgs.rocmPackages;
|
||||
zluda = let
|
||||
rustChannel = gensokyo-zone.inputs.systemd2mqtt.inputs.rust.legacyPackages.x86_64-linux.releases."1.79.0";
|
||||
in
|
||||
pkgs.zluda.override {
|
||||
inherit rocmPackages;
|
||||
inherit (rustChannel) rustPlatform;
|
||||
inherit (rustChannel.buildChannel) rustc;
|
||||
};
|
||||
in {
|
||||
imports = let
|
||||
inherit (meta) nixos;
|
||||
|
|
@ -38,6 +53,11 @@ in {
|
|||
nixos.mediatomb
|
||||
nixos.invidious
|
||||
|
||||
# accelerated
|
||||
nixos.wyoming.whisper
|
||||
nixos.wyoming.piper
|
||||
nixos.wyoming.openwakeword
|
||||
|
||||
# yarr harr fiddle dee dee >w<
|
||||
nixos.radarr
|
||||
nixos.sonarr
|
||||
|
|
@ -75,10 +95,22 @@ in {
|
|||
in [libraryDir];
|
||||
};
|
||||
|
||||
nixpkgs.config = mkIf useZLUDA {
|
||||
cudaSupport = true;
|
||||
};
|
||||
hardware.graphics = {
|
||||
enable = true;
|
||||
extraPackages = with pkgs; [mesa.drivers];
|
||||
extraPackages = with pkgs;
|
||||
mkMerge [
|
||||
[mesa.drivers]
|
||||
(mkIf useZLUDA [zluda])
|
||||
(mkIf useRocm [rocmPackages.clr.icd rocmPackages.clr])
|
||||
];
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
radeontop
|
||||
(mkIf useRocm rocmPackages.rocminfo)
|
||||
];
|
||||
|
||||
fileSystems = let
|
||||
bind = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue