module: remove backlight module
Subsumed into Infini-FRAMEWORK configuration
This commit is contained in:
parent
b3a51be441
commit
c65933c61e
3 changed files with 8 additions and 27 deletions
|
@ -55,4 +55,12 @@
|
|||
networking.interfaces.wlp170s0.useDHCP = true;
|
||||
|
||||
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
|
||||
|
||||
systemd.services.set-initial-backlight = {
|
||||
description = "Sets the initial backlight state on startup";
|
||||
wantedBy = [ "sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\\x2deDP\\x2d1-intel_backlight.device" ];
|
||||
after = [ "system-systemd\\x2dbacklight.slice" "systemd-backlight@backlight:intel_backlight.service" ];
|
||||
serviceConfig.Type = "oneshot";
|
||||
script = "${lib.our.getMainProgram pkgs.acpilight} -set 50";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
}
|
|
@ -21,7 +21,6 @@ in
|
|||
modules.hardware = {
|
||||
wireless.enable = mkDefault true;
|
||||
audio.enable = mkDefault true;
|
||||
backlight.enable = mkDefault true;
|
||||
};
|
||||
|
||||
hardware = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue