New onedrive module + various updates
This commit is contained in:
parent
d304c4c65a
commit
286f70981b
7 changed files with 68 additions and 15 deletions
21
modules/onedrive.nix
Normal file
21
modules/onedrive.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue