mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
16 lines
371 B
Nix
16 lines
371 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
systemd.services.google-drive = {
|
|
description = "Google Drive synchronisation service";
|
|
wants = [ "network-online.target" ];
|
|
script = ''
|
|
${pkgs.grive2}/bin/grive -p ${config.users.users.kfm.home}/cloud/gdrive
|
|
'';
|
|
startAt = "*:0/5";
|
|
serviceConfig = {
|
|
Restart = "on-failure";
|
|
User = "kfm";
|
|
};
|
|
};
|
|
}
|