mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
chore: remove todoist
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
secrets = import <niveum/dot/secrets.nix>;
|
||||
in {
|
||||
imports = [ <niveum/modules/todoist.nix> ];
|
||||
|
||||
niveum.todoist = {
|
||||
enable = false;
|
||||
token = secrets.todoist.token;
|
||||
};
|
||||
|
||||
programs.chromium.extensions = [
|
||||
"jldhpllghnbhlbpcmnajkpdmadaolakh" # Todoist
|
||||
];
|
||||
}
|
||||
@@ -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'';
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user