mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
sudo-conf: make doas inherit PATH for just
This commit is contained in:
parent
16a1666570
commit
a1024668db
1 changed files with 11 additions and 1 deletions
|
|
@ -1,8 +1,18 @@
|
||||||
{pkgs, ...}: {
|
{pkgs, ...}: {
|
||||||
security.doas.enable = true;
|
|
||||||
security.sudo.enable = false;
|
security.sudo.enable = false;
|
||||||
|
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
pkgs.doas-sudo-shim
|
pkgs.doas-sudo-shim
|
||||||
];
|
];
|
||||||
|
security.doas = {
|
||||||
|
enable = true;
|
||||||
|
extraRules = [
|
||||||
|
{
|
||||||
|
# invoke just with doas directly as a nixos-rebuild helper
|
||||||
|
users = [":wheel"];
|
||||||
|
setEnv = ["PATH"];
|
||||||
|
cmd = "just";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue