From 5275b81eea1b60319fdfc4be8e615dda84c50627 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Fri, 25 Apr 2025 18:00:12 +0530 Subject: [PATCH] feat: replace sudo with run0 --- hosts/default/configuration.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/hosts/default/configuration.nix b/hosts/default/configuration.nix index 560c5ae..8e4e9c9 100644 --- a/hosts/default/configuration.nix +++ b/hosts/default/configuration.nix @@ -41,6 +41,7 @@ }; services.fwupd.enable = true; + security.pam.services.systemd-run0 = { }; # Set your time zone. time.timeZone = "Asia/Kolkata"; @@ -131,10 +132,10 @@ security = { rtkit.enable = true; sudo.enable = false; - sudo-rs = { - enable = true; - execWheelOnly = true; - }; + # sudo-rs = { + # enable = true; + # execWheelOnly = true; + # }; }; # Allow unfree packages @@ -162,6 +163,7 @@ ripgrep sbctl wl-clipboard + (writeShellScriptBin "sudo" "run0 $@") ]; # Make sure opengl is enabled