Personal Nix setup
0
fork

Configure Feed

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

Add tangled motd

+21
+21
modules/server/tangled.nix
··· 90 90 TasksMax = 128; 91 91 }; 92 92 93 + systemd.services.tangled-motd = { 94 + description = "Update Tangled MOTD"; 95 + serviceConfig = { 96 + Type = "oneshot"; 97 + User = config.services.tangled.knot.gitUser; 98 + ExecStart = let 99 + stateDir = config.services.tangled.knot.stateDir; 100 + in pkgs.writeShellScript "tangled-motd" '' 101 + ${pkgs.fortune-kind}/bin/fortune-kind | ${pkgs.coreutils}/bin/head -1 > "${stateDir}/motd" 102 + ''; 103 + }; 104 + }; 105 + 106 + systemd.timers.tangled-motd = { 107 + wantedBy = [ "timers.target" ]; 108 + timerConfig = { 109 + OnCalendar = "hourly"; 110 + Persistent = true; 111 + }; 112 + }; 113 + 93 114 age.secrets."gitconfig.private" = let 94 115 user = config.services.tangled.knot.gitUser; 95 116 in {