mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
nixos/hardware.acpilight: remove with lib;
This commit is contained in:
parent
413bd7cb81
commit
be8d4ec87e
1 changed files with 3 additions and 5 deletions
|
@ -1,15 +1,13 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
cfg = config.hardware.acpilight;
|
cfg = config.hardware.acpilight;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
hardware.acpilight = {
|
hardware.acpilight = {
|
||||||
enable = mkOption {
|
enable = lib.mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
type = types.bool;
|
type = lib.types.bool;
|
||||||
description = ''
|
description = ''
|
||||||
Enable acpilight.
|
Enable acpilight.
|
||||||
This will allow brightness control via xbacklight from users in the video group
|
This will allow brightness control via xbacklight from users in the video group
|
||||||
|
@ -18,7 +16,7 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
environment.systemPackages = with pkgs; [ acpilight ];
|
environment.systemPackages = with pkgs; [ acpilight ];
|
||||||
services.udev.packages = with pkgs; [ acpilight ];
|
services.udev.packages = with pkgs; [ acpilight ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue