Commit e5a85cdb1c6b

Vincent Demeester <vincent@sbr.pm>
2020-06-21 13:30:56
users/vincent: fix mails 💺
gmailctl is only available on nixos-unstable or nixpkgs so… using nr for now. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 77e5814
Changed files (1)
users
vincent
users/vincent/mails/default.nix
@@ -9,5 +9,11 @@ in
     sync = sync;
   };
   home.file.".gmailctl/config.jsonnet".source = ./config.jsonnet;
-  home.packages = with pkgs; [ gmailctl ];
+
+  xdg.configFile."nr/mails" = {
+    text = builtins.toJSON [
+      { cmd = "gmailctl"; chan = "unstable"; }
+    ];
+    onChange = "${pkgs.my.nr}/bin/nr mails";
+  };
 }