From d5d59df0486cdb4b8ebcb235ed5e0aceff1b100d Mon Sep 17 00:00:00 2001 From: arunoruto Date: Sat, 2 Nov 2024 16:25:24 +0000 Subject: [PATCH] Only add sudo with insults for non tiny PCs --- modules/nixos/security/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/nixos/security/default.nix b/modules/nixos/security/default.nix index 702b4eb..e0f977a 100644 --- a/modules/nixos/security/default.nix +++ b/modules/nixos/security/default.nix @@ -24,6 +24,7 @@ security = { polkit.enable = true; - sudo.package = pkgs.sudo.override { withInsults = true; }; + sudo.package = + if config.tinypc.enable then pkgs.sudo else pkgs.sudo.override { withInsults = true; }; }; }