This commit is contained in:
Matt Nish-Lapidus 2025-04-03 13:38:45 -04:00
parent 7d7d6cca42
commit 1d2fade50c
5 changed files with 64 additions and 28 deletions

View file

@ -10,7 +10,7 @@
music music
langs langs
emacs emacs
taskwarrior # taskwarrior
]; ];
home = { home = {
@ -21,6 +21,8 @@
designer designer
]) ])
[ nix-config.packages.x86_64-linux.tasklite ]
(with pkgs; [ (with pkgs; [
dconf dconf
cifs-utils cifs-utils

View file

@ -6,7 +6,7 @@
git-conf git-conf
beets beets
taskwarrior taskwarrior
taskwarrior-web # taskwarrior-web
]; ];
home = { home = {
@ -58,20 +58,6 @@ sync.encryption_secret = ${config.sops.placeholder.taskchamp-key}
systemd.user = { systemd.user = {
enable = true; enable = true;
startServices = "sd-switch"; # auto reload services when home is rebuilt startServices = "sd-switch"; # auto reload services when home is rebuilt
services.taskchampion-sync-server = {
Unit = {
Description = "taskchamp";
After = [ "network.target" ];
};
Install = {
WantedBy = [ "multi-user.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.taskchampion-sync-server}/bin/taskchampion-sync-server --listen media-server:33043 --data-dir /home/media/.local/share/task-sync --snapshot-days 1 --snapshot-versions 30";
};
};
}; };
#custom script executables #custom script executables

View file

@ -81,7 +81,7 @@
curl curl
cifs-utils cifs-utils
caddy caddy
taskchampion-sync-server # taskchampion-sync-server
]; ];
fonts = { fonts = {
@ -190,17 +190,17 @@
services.tailscale.enable = true; services.tailscale.enable = true;
systemd.services.tailscaled.after = [ "NetworkManager-wait-online.service" ]; systemd.services.tailscaled.after = [ "NetworkManager-wait-online.service" ];
services.caddy = { # services.caddy = {
enable = true; # enable = true;
virtualHosts = { # virtualHosts = {
"media-server" = { # "media-server" = {
serverAliases = [ "media-server" "media-server.local" ]; # serverAliases = [ "media-server" "media-server.local" ];
extraConfig = '' # extraConfig = ''
reverse_proxy localhost:3000 # reverse_proxy localhost:3000
''; # '';
}; # };
}; # };
}; # };
nixarr = { nixarr = {
enable = true; enable = true;

View file

@ -34,4 +34,18 @@
source = ./taskwarrior/hooks; source = ./taskwarrior/hooks;
recursive = true; recursive = true;
}; };
# services.taskchampion-sync-server = {
# Unit = {
# Description = "taskchamp";
# After = [ "network.target" ];
# };
# Install = {
# WantedBy = [ "multi-user.target" ];
# };
# Service = {
# Type = "simple";
# ExecStart = "${pkgs.taskchampion-sync-server}/bin/taskchampion-sync-server --listen media-server:33043 --data-dir /home/media/.local/share/task-sync --snapshot-days 1 --snapshot-versions 30";
# };
# };
} }

34
packages/tasklite.nix Normal file
View file

@ -0,0 +1,34 @@
{ stdenv, pkgs, unzip, autoPatchelfHook, fetchurl, lib, ... }:
stdenv.mkDerivation {
pname = "tasklite";
version = "ci";
src = fetchurl {
url = "https://productionresultssa18.blob.core.windows.net/actions-results/3145698a-7fd9-415c-99d6-d74d4dfc1a7a/workflow-job-run-015d34fc-67a3-589c-a72e-541495a912de/artifacts/653fbd898f6c68fd4665912e4d0b14e295fe658fbdd60da07ab9cd8ac0793d65.zip?rscd=attachment%3B+filename%3D%22tasklite_linux_x86_64.zip%22&se=2025-04-03T17%3A06%3A50Z&sig=CVkJI8x6BFh1D2dRJZVAeqUeQ26%2BQpE0VYBfslOYrGM%3D&ske=2025-04-04T04%3A23%3A10Z&skoid=ca7593d4-ee42-46cd-af88-8b886a2f84eb&sks=b&skt=2025-04-03T16%3A23%3A10Z&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skv=2025-01-05&sp=r&spr=https&sr=b&st=2025-04-03T16%3A56%3A45Z&sv=2025-01-05";
sha256 = "2b8c98d8adbc56ebccf17f175a52e6633c16562924ef2bdca62a21a273f0051a";
};
nativeBuildInputs = [ unzip autoPatchelfHook ];
buildInputs = with pkgs; [
libz
gmp
stdenv
];
unpackPhase = ''
unzip $src
'';
installPhase = ''
mkdir -p $out/bin
cp tasklite $out/bin
'';
meta = with lib; {
homepage = "";
description = "";
platforms = platforms.linux;
};
}