From 2bc6a3457768eeb7bffe06307b8cbe2e728f7174 Mon Sep 17 00:00:00 2001 From: TheWanderingCrow Date: Thu, 3 Oct 2024 11:44:16 -0400 Subject: [PATCH] Note backup service --- modules/users/crow/user.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/users/crow/user.nix b/modules/users/crow/user.nix index ddbccf8..136ada1 100644 --- a/modules/users/crow/user.nix +++ b/modules/users/crow/user.nix @@ -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 = {