as_user() {
${
if cfg.userEnvironment.enable then ''
- sudo -u ${escapeShellArg cfg.userEnvironment.user} "$@"
+ /run/wrappers/bin/sudo -u ${escapeShellArg cfg.userEnvironment.user} "$@"
'' else ''
:
''
(import ../overlays/pinch.nix)
(self: super: {
auto-upgrade = super.writeShellScriptBin "auto-upgrade" ''
- sudo ${auto-upgrade-script}
+ /run/wrappers/bin/sudo ${auto-upgrade-script}
'';
})
];