[NixOS] Just run bucket mounting as root

This commit is contained in:
Ivan Malison 2024-10-07 15:01:43 -06:00
parent 5deba06fb0
commit c25cd05b15

View File

@ -48,7 +48,7 @@ in {
"${pkgs.coreutils}/bin/chmod 0777 ${mount-path}" "${pkgs.coreutils}/bin/chmod 0777 ${mount-path}"
]; ];
# Use su to run the main command as the railbird user # Use su to run the main command as the railbird user
ExecStart = "${pkgs.su}/bin/su -c '${pkgs.gcsfuse}/bin/gcsfuse --implicit-dirs --key-file ${config.age.secrets.api-service-key.path} ${bucket-name} ${mount-path}' railbird"; ExecStart = "${pkgs.gcsfuse}/bin/gcsfuse --implicit-dirs --key-file ${config.age.secrets.api-service-key.path} ${bucket-name} ${mount-path}";
}; };
}; };