diff options
author | Michael Weiss <dev.primeos@gmail.com> | 2020-02-10 23:10:53 +0100 |
---|---|---|
committer | Michael Weiss <dev.primeos@gmail.com> | 2020-02-10 23:18:20 +0100 |
commit | 5282bc9a748b1dbf2da2a450f522fdbbff192780 (patch) | |
tree | 64864cdf1a5e58cf35964d99ed09cff2d1955d9e /nixos/modules/hardware | |
parent | cf5dd2623bb5518257d0edbb50a84093f08086bb (diff) |
nixos/brightnessctl: Remove the module
Due to the support of the systemd-logind API the udev rules aren't
required anymore which renders this module useless [0].
Note: brightnessctl should now require a working D-Bus setup and a valid
local logind session for this to work.
[0]: https://github.com/NixOS/nixpkgs/pull/79663
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r-- | nixos/modules/hardware/brightnessctl.nix | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/nixos/modules/hardware/brightnessctl.nix b/nixos/modules/hardware/brightnessctl.nix deleted file mode 100644 index 2d54398d10df..000000000000 --- a/nixos/modules/hardware/brightnessctl.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; -let - cfg = config.hardware.brightnessctl; -in -{ - - options = { - - hardware.brightnessctl = { - - enable = mkOption { - default = false; - type = types.bool; - description = '' - Enable brightnessctl in userspace. - This will allow brightness control from users in the video group. - ''; - - }; - }; - }; - - - config = mkIf cfg.enable { - services.udev.packages = with pkgs; [ brightnessctl ]; - environment.systemPackages = with pkgs; [ brightnessctl ]; - }; - -} |