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
ede2da9d6b
commit
2bc6a34577
1 changed files with 4 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, ...}: {
|
||||
{ pkgs, lib, config, ...}: {
|
||||
config.users.users.crow = lib.mkIf config.users.crow.enable {
|
||||
isNormalUser = true;
|
||||
initialPassword = "changeme";
|
||||
|
|
@ -13,6 +13,9 @@
|
|||
Group = "crow";
|
||||
Type = "oneshot";
|
||||
};
|
||||
path = [
|
||||
pkgs.git
|
||||
];
|
||||
script = "cd /home/crow/Notes\ngit add .\ngit commit -am 'automatic backup'\ngit push";
|
||||
};
|
||||
config.systemd.timers.note_sync = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue