Update promtail
This commit is contained in:
parent
9186e3ca29
commit
92848e17d4
2 changed files with 14 additions and 1 deletions
13
modules/powertop.nix
Normal file
13
modules/powertop.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
powerManagement.powertop.enable = true;
|
||||
systemd.services.powertop.postStart = ''
|
||||
HIDDEVICES=$(ls /sys/bus/usb/drivers/usbhid | grep -oE '^[0-9]+-[0-9\.]+' | sort -u)
|
||||
for i in $HIDDEVICES; do
|
||||
echo -n "Enabling " | cat - /sys/bus/usb/devices/$i/product
|
||||
echo 'on' > /sys/bus/usb/devices/$i/power/control
|
||||
done
|
||||
'';
|
||||
# FIXME always coredumps on boot
|
||||
systemd.services.powertop.serviceConfig.Restart = "on-failure";
|
||||
systemd.services.powertop.serviceConfig.RestartSec = "2s";
|
||||
}
|
|
@ -24,7 +24,7 @@
|
|||
filename = "/tmp/positions.yaml";
|
||||
};
|
||||
clients = [{
|
||||
url = "https://";
|
||||
url = "https://loki.sysctl.io/loki/api/v1/push";
|
||||
basic_auth = {
|
||||
username = "loki-sa";
|
||||
password_file = config.sops.secrets.promtail.pass.path;
|
||||
|
|
Loading…
Add table
Reference in a new issue