Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ely authored May 7, 2020
1 parent a398d75 commit 82366f6
Showing 1 changed file with 30 additions and 26 deletions.
56 changes: 30 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,16 @@ In your `home.nix` :
In your `configuration.nix` :

```nix
imports = [
(fetchGit { url = "https://github.com/Elyhaka/shadow-nix"; ref = "drv-v0.14.0"; } + "/system.nix")
];
programs.shadow-client = {
enable = true;
channel = "prod";
};
{
imports = [
(fetchGit { url = "https://github.com/Elyhaka/shadow-nix"; ref = "drv-v0.14.0"; } + "/system.nix")
];
programs.shadow-client = {
enable = true;
channel = "prod";
};
}
```

## Options
Expand All @@ -65,24 +67,26 @@ It is important to have `vaapi` enabled to make Shadow works correctly. You can
The following example should work for both AMD and Intel GPU. This is just an example, there is no guarantee that it will work.

```nix
# Provides the `vainfo` command
environment.systemPackages = with pkgs; [ libva-utils ];
# Hardware hybrid decoding
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
# Hardware drivers
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
};
{
# Provides the `vainfo` command
environment.systemPackages = with pkgs; [ libva-utils ];
# Hardware hybrid decoding
nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
};
# Hardware drivers
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
vaapiIntel
vaapiVdpau
libvdpau-va-gl
intel-media-driver
];
};
}
```


Expand Down

0 comments on commit 82366f6

Please sign in to comment.