summary refs log tree commit diff
path: root/nixos/modules/services
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-01-16 15:57:37 +0000
committerGitHub <noreply@github.com>2018-01-16 15:57:37 +0000
commit822c9498339ac63b16da4bd385ce551ddfe03171 (patch)
treebe833333fe32decd5c64b6e0b57a190915628f61 /nixos/modules/services
parentd02d062c9bca6cb7e4f4b103dba0e61f9adf28e4 (diff)
parent730f8530a8d5744532c5f6e3e87d0ea9e2bbb414 (diff)
downloadnixlib-822c9498339ac63b16da4bd385ce551ddfe03171.tar
nixlib-822c9498339ac63b16da4bd385ce551ddfe03171.tar.gz
nixlib-822c9498339ac63b16da4bd385ce551ddfe03171.tar.bz2
nixlib-822c9498339ac63b16da4bd385ce551ddfe03171.tar.lz
nixlib-822c9498339ac63b16da4bd385ce551ddfe03171.tar.xz
nixlib-822c9498339ac63b16da4bd385ce551ddfe03171.tar.zst
nixlib-822c9498339ac63b16da4bd385ce551ddfe03171.zip
Merge pull request #33915 from lheckemann/remove-amd-hybrid-graphics
amd-hybrid-graphics module: remove
Diffstat (limited to 'nixos/modules/services')
-rw-r--r--nixos/modules/services/hardware/amd-hybrid-graphics.nix46
1 files changed, 0 insertions, 46 deletions
diff --git a/nixos/modules/services/hardware/amd-hybrid-graphics.nix b/nixos/modules/services/hardware/amd-hybrid-graphics.nix
deleted file mode 100644
index b0f9ff56d1b2..000000000000
--- a/nixos/modules/services/hardware/amd-hybrid-graphics.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{ config, pkgs, lib, ... }:
-
-{
-
-  ###### interface
-
-  options = {
-
-    hardware.amdHybridGraphics.disable = lib.mkOption {
-      default = false;
-      type = lib.types.bool;
-      description = ''
-        Completely disable the AMD graphics card and use the
-        integrated graphics processor instead.
-      '';
-    };
-
-  };
-
-
-  ###### implementation
-
-  config = lib.mkIf config.hardware.amdHybridGraphics.disable {
-    systemd.services."amd-hybrid-graphics" = {
-      path = [ pkgs.bash ];
-      description = "Disable AMD Card";
-      after = [ "sys-kernel-debug.mount" ];
-      before = [ "systemd-vconsole-setup.service" "display-manager.service" ];
-      requires = [ "sys-kernel-debug.mount" "vgaswitcheroo.path" ];
-      serviceConfig = {
-        Type = "oneshot";
-        RemainAfterExit = true;
-        ExecStart = "${pkgs.bash}/bin/sh -c 'echo -e \"IGD\\nOFF\" > /sys/kernel/debug/vgaswitcheroo/switch'";
-        ExecStop = "${pkgs.bash}/bin/sh -c 'echo ON >/sys/kernel/debug/vgaswitcheroo/switch'";
-      };
-    };
-    systemd.paths."vgaswitcheroo" = {
-      pathConfig = {
-        PathExists = "/sys/kernel/debug/vgaswitcheroo/switch";
-        Unit = "amd-hybrid-graphics.service";
-      };
-      wantedBy = ["multi-user.target"];
-    };
-  };
-
-}