sudo: explicitly enable module
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
c6aa6332a8
commit
77598282a9
1 changed files with 5 additions and 3 deletions
|
@ -12,13 +12,15 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
# Bypass password prompts
|
# Bypass password prompts
|
||||||
security = {
|
security = {
|
||||||
sudo.wheelNeedsPassword = false;
|
sudo = {
|
||||||
|
enable = true;
|
||||||
|
wheelNeedsPassword = false;
|
||||||
|
};
|
||||||
|
|
||||||
# https://wiki.nixos.org/wiki/Sway#Using_Home_Manager
|
# https://wiki.nixos.org/wiki/Sway#Using_Home_Manager
|
||||||
|
# https://wiki.archlinux.org/title/Polkit#Bypass_password_prompt
|
||||||
polkit = {
|
polkit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# https://wiki.archlinux.org/title/Polkit#Bypass_password_prompt
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
polkit.addRule(function(action, subject) {
|
polkit.addRule(function(action, subject) {
|
||||||
if (subject.isInGroup("wheel")) { return polkit.Result.YES; }
|
if (subject.isInGroup("wheel")) { return polkit.Result.YES; }
|
||||||
|
|
Loading…
Reference in a new issue