This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Every hour automatically add all dirs in /mnt to chia farm, and remove dead mounts | |
{pkgs,...}: | |
{ | |
systemd = { | |
services.plotAdder = { | |
description = "chia plot adder service"; | |
requires = [ "chia.mount" ]; | |
wantedBy = [ "chia.mount" ]; | |
after = [ "chia.mount" ]; | |
serviceConfig = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
let user = 1000; in | |
{ | |
systemd = { | |
timers = { | |
gandi-update-dns = { | |
description = "Update dns every 15 minutes"; | |
timerConfig = { | |
Persistent="True"; | |
OnCalendar=["*-*-* *:0/15:00"]; # Every 15 minutes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run histdb-sync as zmej420 every hour to share zsh history across my machines | |
{ | |
systemd = { | |
user.timers = { | |
histdb-sync = { | |
wantedBy = ["default.target"]; | |
unitConfig = { | |
Description = "sync zsh histdb"; | |
Requires = ["network-online.target"]; | |
}; |