diff --git a/home-manager/modules/rclone/default.nix b/home-manager/modules/rclone/default.nix index 1030220..d7e4a9b 100644 --- a/home-manager/modules/rclone/default.nix +++ b/home-manager/modules/rclone/default.nix @@ -56,11 +56,15 @@ in Unit = { Description = "rclone mount ${unitName}"; After = [ "network.target" ]; + AssertPathIsDirectory = (toString mount.local); }; Service = { - ExecStart = "${pkgs.rclone}/bin/rclone mount --vfs-cache-mode full --vfs-cache-poll-interval 5s --poll-interval 5s --dir-cache-time 10s ${rcloneConnectionString mount} ${mount.local}"; - ExecStop = "${pkgs.fuse}/bin/fusermount -zu ${mount.local}"; + Environment = [ + "PATH=/run/wrappers/bin:$PATH" + ]; + ExecStart = "${pkgs.rclone}/bin/rclone mount --vfs-cache-mode full --vfs-cache-poll-interval 5s --poll-interval 5s --dir-cache-time 10s --umask 022 --allow-other ${rcloneConnectionString mount} ${mount.local}"; + ExecStop = "/run/wrappers/bin/fusermount -zu ${mount.local}"; Restart = "on-failure"; RestartSec = 10; }; diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 6512808..0d283da 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -24,6 +24,8 @@ in programs = { dconf.enable = true; + fuse.userAllowOther = true; + seahorse.enable = true; steam.enable = true; @@ -73,6 +75,11 @@ in startSession = true; }; pki.certificates = [ (builtins.readFile ./horus-ca.pem) ]; + wrappers = { + fusermount.source = "${pkgs.fuse}/bin/fusermount"; + }; + + }; environment = {