Better folder structure

This commit is contained in:
Filippo Berto 2022-08-12 09:09:29 +02:00
parent 8778fa8ccb
commit c4e5ccf6bf
75 changed files with 174 additions and 172 deletions

21
hm_modules/onedrive.nix Normal file
View file

@ -0,0 +1,21 @@
{ pkgs, ... }:
let
onedriveCmd = "${pkgs.unstable.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";
};
};
}