1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

chore: remove todoist

This commit is contained in:
Kierán Meinhardt
2019-12-03 20:12:39 +01:00
parent 0a9ba892a2
commit 5b824354ec
3 changed files with 0 additions and 68 deletions

View File

@@ -1,32 +0,0 @@
{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.niveum.todoist;
todoist = pkgs.unstable.callPackage <niveum/packages/todoist.nix> {};
in {
options.niveum.todoist = {
enable = mkEnableOption "todoist CLI";
token = mkOption { type = types.strMatching "[0-9a-f]+"; };
color = mkOption { type = types.bool; default = true; };
};
config = {
environment.systemPackages = mkIf cfg.enable [
(pkgs.writers.writeDashBin "todoist" ''
${todoist}/bin/todoist $@
'')
];
home-manager.users.me.home.file.".todoist.config.json".text = mkIf cfg.enable (builtins.toJSON {
token = cfg.token;
color = cfg.color;
});
systemd.user.services.todoist-sync = {
enable = cfg.enable;
after = [ "network-online.target" ];
startAt = "*:0/5";
script = ''${todoist}/bin/todoist sync'';
};
};
}