--wip-- [skip ci]

This commit is contained in:
Filippo Berto 2025-09-08 11:36:45 +02:00
parent eea02abfcb
commit 762085707c
136 changed files with 261 additions and 261 deletions

21
hm/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";
};
};
}