From 5b824354ec8bd709278a16b356e97f339a5f0933 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 3 Dec 2019 20:12:39 +0100 Subject: [PATCH] chore: remove todoist --- configs/todoist.nix | 15 --------------- modules/todoist.nix | 32 -------------------------------- packages/todoist.nix | 21 --------------------- 3 files changed, 68 deletions(-) delete mode 100644 configs/todoist.nix delete mode 100644 modules/todoist.nix delete mode 100644 packages/todoist.nix diff --git a/configs/todoist.nix b/configs/todoist.nix deleted file mode 100644 index e031fe9..0000000 --- a/configs/todoist.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ pkgs, ... }: -let - secrets = import ; -in { - imports = [ ]; - - niveum.todoist = { - enable = false; - token = secrets.todoist.token; - }; - - programs.chromium.extensions = [ - "jldhpllghnbhlbpcmnajkpdmadaolakh" # Todoist - ]; -} diff --git a/modules/todoist.nix b/modules/todoist.nix deleted file mode 100644 index 56edda6..0000000 --- a/modules/todoist.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ pkgs, config, lib, ... }: -with lib; -let - cfg = config.niveum.todoist; - todoist = pkgs.unstable.callPackage {}; -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''; - }; - }; -} diff --git a/packages/todoist.nix b/packages/todoist.nix deleted file mode 100644 index aaa737e..0000000 --- a/packages/todoist.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ buildGoModule, fetchFromGitHub, lib }: -buildGoModule rec { - name = "todoist-${version}"; - version = "master"; - - src = fetchFromGitHub { - owner = "sachaos"; - repo = "todoist"; - rev = "8c17d7ebf9be78cce24414b5aa3d9c8f1098e506"; - sha256 = "1r5kn5sx9g9rvx78cqfh19mqwf7370vk102x1n062whryk1j3562"; - }; - - modSha256 = "09n6abyaqwz4zcdz8934rvpbxhp4v2nmm5v739kkcc98c3h93i64"; - - meta = with lib; { - description = "Todoist CLI Client"; - homepage = "https://github.com/sachaos/todoist"; - license = licenses.mit; - platforms = platforms.linux ++ platforms.darwin; - }; -}