Set audio-recorder service to start after sound.target reached (#34)

- disable i2c-rtc-start, not functioning correctly currently

Signed-off-by: Satu Koskinen <satu.a.koskinen@gmail.com>
This commit is contained in:
Satu Koskinen 2023-10-16 14:08:14 +02:00 committed by GitHub
parent 150749feae
commit e39008b0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View File

@ -72,7 +72,9 @@
User = "root"; # Replace with appropriate user
Restart = "always";
};
startLimitIntervalSec = 0;
unitConfig = {
After = "sound.target";
};
};
};
}

View File

@ -13,6 +13,7 @@ in {
boot = {
# disable internal sound card and vc4 gpu
# to set USB sound card as default
blacklistedKernelModules = ["snd_bcm2835" "vc4"];
# enable i2c and rtc modules
kernelModules = ["i2c-dev" "i2c_bcm2708" "rtc_ds1307"];

View File

@ -9,6 +9,7 @@ in {
sdImage.compressImage = false;
# disable internal sound card and vc4 gpu
# to set USB sound card as default
boot.blacklistedKernelModules = ["snd_bcm2835" "vc4"];
# enable i2c and rtc modules
boot.kernelModules = ["i2c-dev" "i2c_bcm2708" "rtc_ds1307"];
@ -50,8 +51,11 @@ in {
interval-secs = 10;
};
# disabled for now, with current config
# RTC resets after shutdown
services.i2c-rtc-start = {
enable = true;
enable = false;
i2c-bus = 1;
};