diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-04-15 17:54:49 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-04-15 17:54:49 -0600 |
| commit | fa0728ffcd677923a8c8f9e2735d784b7fae84e5 (patch) | |
| tree | 11a20d6103c510bb306bd67d01ea973b92d8cd1e | |
| parent | 732bc276abe51986a72c2ef5287d4490ff9060fa (diff) | |
home/environ: update units currencies daily
| -rw-r--r-- | home/environ.nix | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/home/environ.nix b/home/environ.nix index 5c5b102..f03c841 100644 --- a/home/environ.nix +++ b/home/environ.nix @@ -9,9 +9,30 @@ in config = { xdg.enable = true; - systemd.user.tmpfiles.rules = [ - "d %t/vtmp 0700" - ]; + systemd.user = { + tmpfiles.rules = [ + "d %t/vtmp 0700" + ]; + + timers = { + units-cur = { + Install.WantedBy = [ "timers.target" ]; + Timer.OnCalendar = "daily"; + Unit.Description = "Update currency information for 'units'"; + }; + }; + + services = { + units-cur = { + Unit.Description = "Update currency information for 'units'"; + + Service = { + Type = "exec"; + ExecStart = "${pkgs.units}/bin/units_cur .units"; + }; + }; + }; + }; home.file = { #TODO: .calc_history |
