git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #33915 from lheckemann/remove-amd-hybrid-graphics

amd-hybrid-graphics module: remove

commit822c9498339ac63b16da4bd385ce551ddfe03171 authorJörg Thalheim <Mic92@users.noreply.github.com> dateTue 16 Jan 2018, 15:57 (9 years ago) parentd02d062730f853
3 files changed+5−47
nixos/doc/manual/release-notes/rl-1803.xml+5 nixos/modules/module-list.nix−1 nixos/modules/services/hardware/amd-hybrid-graphics.nix−46
nixos/doc/manual/release-notes/rl-1803.xml+5
@@ -144,6 +144,11 @@ following incompatible changes:</para>
144144 will be accessible at <literal>/run/memcached/memcached.sock</literal>.
145145 </para>
146146 </listitem>
147+ <listitem>
148+ <para>
149+ The <varname>hardware.amdHybridGraphics.disable</varname> option was removed for lack of a maintainer. If you still need this module, you may wish to include a copy of it from an older version of nixos in your imports.
150+ </para>
151+ </listitem>
147152</itemizedlist>
148153
149154</section>
nixos/modules/module-list.nix−1
@@ -225,7 +225,6 @@
225225 ./services/games/terraria.nix
226226 ./services/hardware/acpid.nix
227227 ./services/hardware/actkbd.nix
228− ./services/hardware/amd-hybrid-graphics.nix
229228 ./services/hardware/bluetooth.nix
230229 ./services/hardware/brltty.nix
231230 ./services/hardware/freefall.nix
nixos/modules/services/hardware/amd-hybrid-graphics.nixdeleted−46
@@ -1,46 +0,0 @@
1−{ config, pkgs, lib, ... }:
2−
3−{
4−
5− ###### interface
6−
7− options = {
8−
9− hardware.amdHybridGraphics.disable = lib.mkOption {
10− default = false;
11− type = lib.types.bool;
12− description = ''
13− Completely disable the AMD graphics card and use the
14− integrated graphics processor instead.
15− '';
16− };
17−
18− };
19−
20−
21− ###### implementation
22−
23− config = lib.mkIf config.hardware.amdHybridGraphics.disable {
24− systemd.services."amd-hybrid-graphics" = {
25− path = [ pkgs.bash ];
26− description = "Disable AMD Card";
27− after = [ "sys-kernel-debug.mount" ];
28− before = [ "systemd-vconsole-setup.service" "display-manager.service" ];
29− requires = [ "sys-kernel-debug.mount" "vgaswitcheroo.path" ];
30− serviceConfig = {
31− Type = "oneshot";
32− RemainAfterExit = true;
33− ExecStart = "${pkgs.bash}/bin/sh -c 'echo -e \"IGD\\nOFF\" > /sys/kernel/debug/vgaswitcheroo/switch'";
34− ExecStop = "${pkgs.bash}/bin/sh -c 'echo ON >/sys/kernel/debug/vgaswitcheroo/switch'";
35− };
36− };
37− systemd.paths."vgaswitcheroo" = {
38− pathConfig = {
39− PathExists = "/sys/kernel/debug/vgaswitcheroo/switch";
40− Unit = "amd-hybrid-graphics.service";
41− };
42− wantedBy = ["multi-user.target"];
43− };
44− };
45−
46−}