Skip to content

Commit

Permalink
desktop: Remove digitalgarden pcloud mount
Browse files Browse the repository at this point in the history
This has been moved to dropbox.
  • Loading branch information
juanibiapina committed Feb 20, 2025
1 parent 8c0e94e commit 4710ce5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions nix/hosts/desktop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,32 +136,6 @@
};
};

# mount pcloud digitalgarden drive
systemd.user.services.pcloud-digitalgarden = {
description = "Mount pcloud digitalgarden drive";
wantedBy = [ "default.target" ];
after = [ "network.target" ];
script = ''
${pkgs.coreutils}/bin/mkdir -p /home/juan/Sync/DigitalGarden
${pkgs.rclone}/bin/rclone mount --vfs-cache-mode full pcloud:/DigitalGarden /home/juan/Sync/DigitalGarden
'';
serviceConfig = {
# workaround for:
# mount helper error: fusermount3: mount failed: Operation not permitted
# Fatal error: failed to mount FUSE fs: fusermount: exit status 1
# https://github.com/NixOS/nixpkgs/issues/96928
Environment = [ "PATH=/run/wrappers/bin/:$PATH" ];

# Directory must be manually unmounted after systemd kills rclone
ExecStop = "fusermount -u /home/juan/Sync/DigitalGarden";

# Retry settings
Restart = "on-failure";
RestartSec = 10;
StartLimitIntervalSec = 0; # allow unlimited restarts
};
};

# Enable sound.
# disable pulseaudio
services.pulseaudio.enable = false;
Expand Down

0 comments on commit 4710ce5

Please sign in to comment.