mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 06:18:03 +03:00
the big one
This commit is contained in:
1 parent
cf181e7ed0
commit
cfa4aa4969
11 files changed
+570
-80
No files matched your search
@@ -0,0 +1,24 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.homeModules.home-gdrive-rclone =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [ pkgs.rclone ];
|
||||
|
||||
systemd.user.services.rclone-gdrive = {
|
||||
Unit = {
|
||||
Description = "Google Drive (rclone mount)";
|
||||
After = [ "network-online.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "notify";
|
||||
ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p %h/GoogleDrive";
|
||||
ExecStart = "${pkgs.rclone}/bin/rclone mount gdrive: %h/GoogleDrive --vfs-cache-mode writes";
|
||||
ExecStop = "${pkgs.fuse}/bin/fusermount -u %h/GoogleDrive";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 10;
|
||||
};
|
||||
Install.WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user