split out services so they dont auto build on user include

This commit is contained in:
TheWanderingCrow 2024-12-25 20:35:21 -05:00
parent aa052b998e
commit 2b95d8aebd
7 changed files with 36 additions and 18 deletions

View file

@ -10,21 +10,5 @@
extraGroups = ["wheel" "networkmanager" "audio" "plugdev"];
};
config.systemd.services.note_sync = {
enable = true;
description = "Auto sync notes to remote";
serviceConfig = {
User = "crow";
Type = "oneshot";
};
path = [
"/run/current-system/sw"
];
startAt = [
"*:0/5"
];
script = "cd /home/crow/Notes\ngit pull\ngit add .\ngit diff-index --quiet HEAD || git commit -am 'automatic backup'\ngit push";
};
config.home-manager.users.crow = lib.mkIf config.user.crow.home.enable ./home.nix;
}