Update tiny-dfr to 0.3.1

This commit is contained in:
xenia 2024-09-16 14:23:32 +02:00
parent be6f87025b
commit 8c17b9cea1
2 changed files with 7 additions and 4 deletions

View File

@ -211,7 +211,7 @@
ref = "main"; ref = "main";
rev = "012d29d4b4d7148414bb649c39805479c7a4327b"; rev = "012d29d4b4d7148414bb649c39805479c7a4327b";
}; };
tiny-dfr = import ./nixos/tiny-dfr.nix { inherit pkgs; }; tiny-dfr = import ./nixos/tiny-dfr.nix { pkgs = pkgs-unstable; };
in in
nixpkgs.lib.nixosSystem { nixpkgs.lib.nixosSystem {
inherit system; inherit system;

View File

@ -1,13 +1,16 @@
{ {
pkgs, pkgs,
tiny-dfr ? pkgs.tiny-dfr tiny-dfr ? pkgs.tiny-dfr
}: { }:
assert tiny-dfr.version == "0.3.1";
{
services.udev.packages = [ tiny-dfr ]; services.udev.packages = [ tiny-dfr ];
systemd.services.tiny-dfr = { systemd.services.tiny-dfr = {
enable = true; enable = true;
description = "tinydfr"; description = "tiny-dfr";
after = ["systemd-user-sessions.service" "getty@tty1.service" "plymouth-quit.service" "systemd-logind.service"]; after = ["systemd-user-sessions.service" "getty@tty1.service" "plymouth-quit.service" "systemd-logind.service" "dev-tiny_dfr_display.device" "dev-tiny_dfr_backlight.device" "dev-tiny_dfr_display_backlight.device"];
wantedBy = ["multi-user.target"]; wantedBy = ["multi-user.target"];
bindsTo = ["dev-tiny_dfr_display.device" "dev-tiny_dfr_backlight.device" "dev-tiny_dfr_display_backlight.device"];
startLimitIntervalSec = 30; startLimitIntervalSec = 30;
startLimitBurst = 2; startLimitBurst = 2;
serviceConfig = { serviceConfig = {