Skip to content

Commit 2f8e21e

Browse files
authored
fix: systemd service failure
Fixes an issue with `blctl`'s systemd service unit failing to start due to `/sys/class/backlight/<backlight-device>` not yet existing.
1 parent 122f956 commit 2f8e21e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

nix/module.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ in {
2424
ExecStart = "${config.services.blctl.package}/bin/blctld";
2525
};
2626
wantedBy = [ "multi-user.target" ];
27+
after = [ "multi-user.target" ];
2728
};
2829
};
2930
};

nix/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ in
1111
src = pkgs.fetchFromGitHub {
1212
owner = "imxela";
1313
repo = "blctl";
14-
rev = "af4124f9ac0cb247c8b90791b0acfdb59c55d7ca";
15-
sha256 = "sha256-9yz+O323ZMTdv3E0kzPfjHUZM4nokdK3PqoBsjwtwJQ=";
14+
rev = "cdc88e6ab1fb33ffd0e1f3c6f4d91c1eba61419f";
15+
sha256 = "sha256-S0VAuGF2KzrlX/NQ/S1I1+n4Y9CoX1QxXo0VZ1HY380=";
1616
};
1717

1818
cargoLock = {

service-configs/systemd/blctl.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[Unit]
22
Description=A minimal backlight control daemon for Linux
3+
After=multi-user.target
34

45
[Service]
56
ExecStart=/usr/sbin/blctld

0 commit comments

Comments
 (0)