commit e5a85cdb1c6b49866ef174787f4b18eef8481e5f
parent 77e58146e6b2a29dae16861e9e8e144c9cbbb313
Author: Vincent Demeester <vincent@sbr.pm>
Date: Sun, 21 Jun 2020 13:30:56 +0200
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>
Diffstat:
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/users/vincent/mails/default.nix b/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";
+ };
}