-
Hi @ryan4yin, in the section Home Manager vs NixOS you mentioned that a good rule of thumb for choosing package management location is by considering whether the package needs to be accessible by all users (including Forget to say thank you for putting up this wonderful tutorial, tremendous effort! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Good question, let me explain it. # kubectl is available
› kubectl | head
kubectl controls the Kubernetes cluster manager.
Find more information at: https://kubernetes.io/docs/reference/kubectl/
......
# switch user to `root`
› sudo su
# kubectl is no longer available
> kubectl 08/17/2023 10:32:20 PM
Error: nu::shell::external_command
× External command failed
╭─[entry #1:1:1]
1 │ kubectl
· ───┬───
· ╰── executable was not found
╰────
help: No such file or directory (os error 2) But you can still use kubectl by /home/ryan/nix-config> exit 1 08/17/2023 10:32:23 PM
› sudo kubectl
kubectl controls the Kubernetes cluster manager.
... As far as I understand, ConclusionOn NixOS, there many ways to let you use a package with privileged access:
It is recommended to give priority to the first two methods. |
Beta Was this translation helpful? Give feedback.
Good question, let me explain it.
If you switch to another user, the packages installed by the current user will be unavailable: