From 82366f6835961a39c53c39b9040dc4d749cf48cc Mon Sep 17 00:00:00 2001 From: Ely <57923898+Elyhaka@users.noreply.github.com> Date: Thu, 7 May 2020 10:12:59 +0200 Subject: [PATCH] Update README.md --- README.md | 56 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 84dbf84..3666dc2 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 + ]; + }; +} ```