diff --git a/nix/mega.nix b/nix/mega.nix index cfefe3c..4e951ad 100644 --- a/nix/mega.nix +++ b/nix/mega.nix @@ -34,7 +34,8 @@ in path = [ pkgs.bash ]; serviceConfig = { - ExecStart = "${pkgs.rclone}/bin/rclone mount ${rcloneBucket} ${mountPath} -vv --vfs-cache-mode full --allow-other --fuse-flag allow_other --dir-perms 0777 --file-perms 0777 --umask 0 --default-permissions --dir-cache-time 300h --config ${rcloneConfigPath}"; + ExecStart = "${pkgs.rclone}/bin/rclone mount ${rcloneBucket} ${mountPath} -vv --vfs-cache-mode full --allow-other --fuse-flag allow_other --dir-perms 0777 --file-perms 0777 --umask 0 --dir-cache-time 300h --config ${rcloneConfigPath}"; + ExecStop = "umount /mnt/mega"; }; }; diff --git a/nix/qdhc.nix b/nix/qdhc.nix index 9856f67..4f4f553 100644 --- a/nix/qdhc.nix +++ b/nix/qdhc.nix @@ -77,4 +77,5 @@ }; users.users.qmoran.packages = with pkgs; [ nvtopPackages.nvidia ]; + hardware.nvidia-container-toolkit.enable = true; } \ No newline at end of file diff --git a/src/docker-compose/all-down.sh b/src/docker-compose/all-down.sh index 48a27ba..818fcea 100755 --- a/src/docker-compose/all-down.sh +++ b/src/docker-compose/all-down.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/run/current-system/sw/bin/bash SERVICE_NAMES=( "paperless" diff --git a/src/docker-compose/all-pull.sh b/src/docker-compose/all-pull.sh index 2800193..bba9919 100755 --- a/src/docker-compose/all-pull.sh +++ b/src/docker-compose/all-pull.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/run/current-system/sw/bin/bash SERVICE_NAMES=( "paperless" diff --git a/src/docker-compose/all-up.sh b/src/docker-compose/all-up.sh index 8c92f2f..cdec559 100755 --- a/src/docker-compose/all-up.sh +++ b/src/docker-compose/all-up.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/run/current-system/sw/bin/bash SERVICE_NAMES=( "paperless"