mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
Note backup service
This commit is contained in:
parent
7ac222a394
commit
a4d89e173e
1 changed files with 3 additions and 11 deletions
|
|
@ -16,18 +16,10 @@
|
|||
path = [
|
||||
pkgs.git
|
||||
];
|
||||
script = "cd /home/crow/Notes\ngit add .\ngit commit -am 'automatic backup'\ngit push";
|
||||
};
|
||||
config.systemd.timers.note_sync = {
|
||||
enable = true;
|
||||
description = "Timer to autosync notes";
|
||||
timerConfig = {
|
||||
OnCalendar = "*:0/5";
|
||||
Persistent = true;
|
||||
};
|
||||
wantedBy = [
|
||||
"timers.target"
|
||||
startAt = [
|
||||
"*:0/5"
|
||||
];
|
||||
script = "cd /home/crow/Notes\ngit add .\ngit commit -am 'automatic backup'\ngit push";
|
||||
};
|
||||
|
||||
config.home-manager.users.crow = lib.mkIf config.users.crow.home.enable ./home.nix;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue