mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
add report service
This commit is contained in:
parent
efcffa2bf6
commit
25ad587986
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
time.timeZone = "US/Eastern";
|
||||
|
||||
|
@ -32,4 +32,16 @@
|
|||
publish.addresses = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.timers.nixosReport.timerConfig.RandomizedDelaySec = "55min";
|
||||
systemd.services.nixosReport = {
|
||||
startAt = "hourly";
|
||||
serviceConfig.Type = "simple";
|
||||
serviceConfig.ExecStart = lib.concatStringsSep " " [
|
||||
"${pkgs.curl}/bin/curl --silent https://log.bck.me/nixos-report"
|
||||
"-H 'hostname: ${config.networking.hostName}'"
|
||||
"-H 'version: ${config.system.nixos.label}'"
|
||||
"-H 'imports: ${lib.concatMapStringsSep " " toString (pkgs.callPackage /etc/nixos/configuration.nix { }).imports}'"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue