diff --git a/modules/modules.nix b/modules/modules.nix index fbfe272..c32bdf0 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -70,7 +70,8 @@ with lib; runAsUserCmd = mkOption { readOnly = true; default = if config.security.doas.enable - then "doas -u" + # TODO: Use absolute path until https://github.com/NixOS/nixpkgs/pull/133622 is available. + then "/run/wrappers/bin/doas -u" else "sudo -u"; }; };