oizys/hosts/othalan/services.nix

40 lines
967 B
Nix
Raw Normal View History

2024-11-28 18:53:31 -06:00
{
config,
# pkgs,
...
}:
# let
# notes-git = ''${pkgs.git}/bin/git -C /home/daylin/stuff/notes'';
# in
2024-05-06 14:32:00 -05:00
{
2024-08-11 08:29:46 -05:00
services.restic.backups.gdrive = {
user = "daylin";
repository = "rclone:g:archives/othalan";
2024-11-28 18:53:31 -06:00
passwordFile = config.sops.secrets.restic-othalan.path;
2024-08-11 08:29:46 -05:00
paths = [
"/home/daylin/stuff/"
"/home/daylin/dev/"
];
};
2024-11-28 18:53:31 -06:00
# systemd.services.notes-bot = {
# description = "auto commit changes to notes";
# serviceConfig = {
# Type = "oneshot";
# User = "daylin";
# ExecStart = ''
# ${pkgs.bash}/bin/bash -c '${notes-git} commit -m ":memo: :robot: $(${pkgs.coreutils}/bin/date +\'%%T\')" --no-gpg-sign -- notes'
# '';
# };
# };
# systemd.timers.notes-bot-timer = {
# description = "run notes commit service";
# wantedBy = [ "timers.target" ];
# timerConfig = {
# OnCalendar = "daily";
# Persistent = true;
# Unit = "notes-bot.service";
# };
# };
}