summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-04-15 17:54:49 -0600
committerAlejandro Soto <alejandro@34project.org>2024-04-15 17:54:49 -0600
commitfa0728ffcd677923a8c8f9e2735d784b7fae84e5 (patch)
tree11a20d6103c510bb306bd67d01ea973b92d8cd1e
parent732bc276abe51986a72c2ef5287d4490ff9060fa (diff)
home/environ: update units currencies daily
Diffstat (limited to '')
-rw-r--r--home/environ.nix27
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