diff options
author | tv <tv@krebsco.de> | 2018-01-04 02:28:44 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-01-04 02:28:44 +0100 |
commit | 536980252250ce6eee66aa499f329349374414cd (patch) | |
tree | a79ffc0276afa6728df27be27faf4f5cbe7e4de6 | |
parent | e46a031442299bc2284efc838e99e91582fbafe9 (diff) |
tv wu: move video driver stuff to w110er
-rw-r--r-- | tv/1systems/wu/config.nix | 6 | ||||
-rw-r--r-- | tv/2configs/hw/w110er.nix | 17 |
2 files changed, 17 insertions, 6 deletions
diff --git a/tv/1systems/wu/config.nix b/tv/1systems/wu/config.nix index 5c59389..b3e084f 100644 --- a/tv/1systems/wu/config.nix +++ b/tv/1systems/wu/config.nix @@ -44,12 +44,6 @@ with import <stockholm/lib>; }; }; - krebs.nixpkgs.allowUnfreePredicate = pkg: hasPrefix "nvidia-x11-" pkg.name; - hardware.bumblebee.enable = true; - hardware.bumblebee.group = "video"; - hardware.enableRedistributableFirmware= true; - hardware.opengl.driSupport32Bit = true; - services.printing.enable = true; services.udev.extraRules = '' diff --git a/tv/2configs/hw/w110er.nix b/tv/2configs/hw/w110er.nix index 787bfc6..55e9482 100644 --- a/tv/2configs/hw/w110er.nix +++ b/tv/2configs/hw/w110er.nix @@ -1,8 +1,20 @@ +with import <stockholm/lib>; { pkgs, ... }: { imports = [ ../smartd.nix + { + # nvidia doesn't build despite + # https://github.com/NixOS/nixpkgs/issues/33284 + #hardware.bumblebee.enable = true; + #hardware.bumblebee.group = "video"; + #hardware.enableRedistributableFirmware= true; + #krebs.nixpkgs.allowUnfreePredicate = pkg: + # hasPrefix "nvidia-x11-" pkg.name || + # hasPrefix "nvidia-persistenced-" pkg.name || + # hasPrefix "nvidia-settings-" pkg.name; + } ]; boot.extraModprobeConfig = '' @@ -15,6 +27,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; + hardware.opengl.driSupport32Bit = true; hardware.opengl.extraPackages = [ pkgs.vaapiIntel ]; networking.wireless.enable = true; @@ -41,4 +54,8 @@ echo auto > $i/power/control # defaults to 'on' done) ''; + + services.xserver = { + videoDriver = "intel"; + }; } |