summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/robotframework-pythonlibcore
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2025-06-14 08:57:13 +0200
committerzimbatm <zimbatm@zimbatm.com>2025-06-14 09:16:44 +0200
commit7d8a9fa0e14be83d2301485a669ffcbc0eb7f0cb (patch)
treefe1a924e448b160584b386d1a40960de77caf207 /pkgs/development/python-modules/robotframework-pythonlibcore
parentd022a1e7bc8809416b4d97eb8cb2be98f365d46e (diff)
nixos-rebuild: restore local sudo functionality
This functionality used to exist and was then removed in #331741. The issue was that $SUDO_USER is already used by `sudo` as an environment variable. This change makes it possible to checkout a flake repository, as a user, enter the devshell, and with the additions below and apply changes with `nixos-rebuild switch`. ```nix { pkgs }: let nixos-rebuild = pkgs.writeShellApplication { name = "nixos-rebuild"; runtimeInputs = [ pkgs.nixos-rebuild ]; text = '' set -euo pipefail exec nixos-rebuild --flake "$PRJ_ROOT" --use-local-sudo "$@" ''; }; in pkgs.mkShellNoCC { packages = [ nixos-rebuild ]; shellHook = '' export PRJ_ROOT=$PWD ''; } ```
Diffstat (limited to 'pkgs/development/python-modules/robotframework-pythonlibcore')
0 files changed, 0 insertions, 0 deletions