this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

make kitaab update a user unit, use user path

+34 -28
+1
home/gui/default.nix
··· 6 6 ../profiles/desktop 7 7 ../profiles/email 8 8 ../profiles/cal 9 + ../profiles/sync/kitaab 9 10 ]; 10 11 }
+1
home/profiles/cli/default.nix
··· 59 59 pandoc 60 60 taskwarrior-tui 61 61 python3Packages.howdoi 62 + vimwiki-cli 62 63 63 64 (pkgs.writeScriptBin "jq-repl" '' 64 65 #!/usr/bin/env bash
+32
home/profiles/sync/kitaab/default.nix
··· 1 + { pkgs, ... }: 2 + 3 + let 4 + name = "kitaab-sync"; 5 + # Note this will fail if index.wiki is open in vim while this runs 6 + mkStartScript = name: pkgs.writeShellScript "${name}.sh" '' 7 + set -euo pipefail 8 + PATH=/run/current-system/sw/bin:/etc/profiles/per-user/anish/bin: 9 + cd /home/anish/kitaab 10 + vimwiki tags rebuild 11 + git add -A 12 + git diff-index --quiet HEAD || git commit -m 'syncing kitaab' # if nothing, don't exit 1 13 + git push 14 + exit 0 15 + ''; 16 + in 17 + { 18 + systemd.user.services.kitaab-sync = { 19 + Service = { 20 + ExecStart = "${mkStartScript name}"; 21 + }; 22 + }; 23 + systemd.user.timers.kitaab-sync = { 24 + Install = { 25 + WantedBy = [ "timers.target" ]; 26 + PartOf = [ "kitaab-sync.service" ]; 27 + }; 28 + Timer = { 29 + OnCalendar = [ "hourly" ]; 30 + }; 31 + }; 32 + }
-1
hosts/curve/default.nix
··· 6 6 ../profiles/core 7 7 ../profiles/bluetooth 8 8 ../profiles/music 9 - ../profiles/sync/kitaab 10 9 ../profiles/sync/cal 11 10 ../profiles/wifi 12 11 ../profiles/desktop
-27
hosts/profiles/sync/kitaab/default.nix
··· 1 - { pkgs, ... }: 2 - 3 - { 4 - systemd.services.kitaab-sync = { 5 - serviceConfig.Type = "oneshot"; 6 - path = [ 7 - pkgs.git 8 - pkgs.openssh 9 - pkgs.coreutils 10 - ]; 11 - script = '' 12 - cd /home/anish/kitaab 13 - git add -A 14 - git diff-index --quiet HEAD || git commit -m 'syncing kitaab' # if nothing, don't exit 1 15 - git push 16 - exit 0 17 - ''; 18 - serviceConfig = { 19 - User = "anish"; 20 - }; 21 - }; 22 - systemd.timers.kitaab-sync = { 23 - wantedBy = [ "timers.target" ]; 24 - partOf = [ "kitaab-sync.service" ]; 25 - timerConfig.OnCalendar = [ "hourly" ]; 26 - }; 27 - }