From c25cd05b154e1df1623ddbc8b1e25c3cac5e8314 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 7 Oct 2024 15:01:43 -0600 Subject: [PATCH] [NixOS] Just run bucket mounting as root --- nixos/k3s.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/k3s.nix b/nixos/k3s.nix index 7c614795..0157c225 100644 --- a/nixos/k3s.nix +++ b/nixos/k3s.nix @@ -48,7 +48,7 @@ in { "${pkgs.coreutils}/bin/chmod 0777 ${mount-path}" ]; # 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}"; }; };