module: remove backlight module

Subsumed into Infini-FRAMEWORK configuration
This commit is contained in:
Infinidoge 2022-04-26 10:54:43 -04:00
parent b3a51be441
commit c65933c61e
3 changed files with 8 additions and 27 deletions

View file

@ -1,26 +0,0 @@
{ config, lib, pkgs, inputs, ... }:
with lib;
with lib.our;
with lib.hlissner;
let
cfg = config.modules.hardware.backlight;
in
{
options.modules.hardware.backlight = with types; {
enable = mkBoolOpt false;
initialValue = mkOpt str "50";
initialCommand = mkOpt str "${getMainProgram pkgs.acpilight} -set ${cfg.initialValue}";
};
config = mkIf cfg.enable {
systemd.services = {
"set-initial-backlight" = {
description = "Sets the initial backlight status on startup";
after = [ "multi-user.target" ];
serviceConfig.Type = "oneshot";
script = cfg.initialCommand;
};
};
boot.kernelParams = [ "systemd.restore_state=0" ];
};
}

View file

@ -21,7 +21,6 @@ in
modules.hardware = {
wireless.enable = mkDefault true;
audio.enable = mkDefault true;
backlight.enable = mkDefault true;
};
hardware = {