ok i give up fow now...
This commit is contained in:
parent
0f2f47db12
commit
946c86f5d4
@ -33,7 +33,6 @@ in {
|
|||||||
Domain radio is hosted on
|
Domain radio is hosted on
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
enableVideoAcceleration = lib.mkEnableOption "enable video acceleration";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
@ -70,18 +69,5 @@ in {
|
|||||||
chown ${cfg.user} ${cfg.dataDir}
|
chown ${cfg.user} ${cfg.dataDir}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
# hardware accelerated video encoding/decoding (on intel)
|
|
||||||
nixpkgs.config.packageOverrides = lib.mkIf cfg.enableVideoAcceleration (pkgs: {
|
|
||||||
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
|
||||||
});
|
|
||||||
hardware.opengl = lib.mkIf cfg.enableVideoAcceleration {
|
|
||||||
enable = true;
|
|
||||||
extraPackages = with pkgs; [
|
|
||||||
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
|
||||||
vaapiIntel # LIBVA_DRIVER_NAME=i965
|
|
||||||
];
|
|
||||||
extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
@ -126,7 +126,18 @@ in {
|
|||||||
services.radio = {
|
services.radio = {
|
||||||
enable = true;
|
enable = true;
|
||||||
host = "radio.neet.space";
|
host = "radio.neet.space";
|
||||||
enableVideoAcceleration = true;
|
};
|
||||||
|
# hardware accelerated video encoding/decoding (on intel)
|
||||||
|
nixpkgs.config.packageOverrides = pkgs: {
|
||||||
|
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
|
||||||
|
};
|
||||||
|
hardware.opengl = {
|
||||||
|
enable = true;
|
||||||
|
extraPackages = with pkgs; [
|
||||||
|
intel-media-driver # LIBVA_DRIVER_NAME=iHD
|
||||||
|
vaapiIntel # LIBVA_DRIVER_NAME=i965
|
||||||
|
];
|
||||||
|
extraPackages32 = with pkgs.pkgsi686Linux; [ vaapiIntel ];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."paradigminteractive.agency" = {
|
services.nginx.virtualHosts."paradigminteractive.agency" = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user