1
0
Fork 0
nixos-config/home-manager/habitask.nix

27 lines
670 B
Nix
Raw Normal View History

2018-04-02 15:52:16 +00:00
{ pkgs, ... }:
2018-02-08 23:51:40 +00:00
let
2018-04-02 15:52:16 +00:00
habitask = with pkgs; with rustPlatform; buildRustPackage rec {
2018-02-08 23:51:40 +00:00
name = "habitask";
version = "0.1.0";
src = ~/data/aktuell/it/code/habitask;
depsSha256 = "0clac943ajxns64jkdcg312a4x4jgd239jb4yd5qm32nnkj62ym7";
cargoSha256 = "0clac943ajxns64jkdcg312a4x4jgd239jb4yd5qm32nnkj62ym7";
buildInputs = [ openssl pkgconfig ];
};
in {
2018-02-14 09:19:22 +00:00
systemd.user = {
services.habitask = {
Unit = {
Description = "Update habitica Tasks";
};
Service = {
Type = "oneshot";
ExecStart="{habitask}/bin/habitask";
};
};
timers.habitask = {
Timer.OnCalendar = "6:00";
};
};
2018-02-08 23:51:40 +00:00
}