New onedrive module + various updates

This commit is contained in:
Filippo Berto 2021-09-13 16:06:18 +02:00
parent d304c4c65a
commit 286f70981b
7 changed files with 68 additions and 15 deletions

21
modules/onedrive.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
let
onedriveCmd = "${pkgs.onedrive}/bin/onedrive --monitor";
in
{
systemd.user.services."onedrive" = {
Unit = {
Description = "OneDrive synchronization service";
After = [ "network.target" ];
PartOf = [ "default.target" ];
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
ExecStart = onedriveCmd;
Restart = "always";
RestartSec = "30s";
};
};
}