Move HM modules
This commit is contained in:
parent
5db76d0fed
commit
3cf0004b78
110 changed files with 403 additions and 564 deletions
17
modules/hm/onedrive.nix
Normal file
17
modules/hm/onedrive.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ 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