From dd6ad70e7c7e77e9f8a3c062d37ed638be7095ba Mon Sep 17 00:00:00 2001 From: Tomas Rivera Date: Mon, 1 Jun 2026 11:18:48 +0200 Subject: [PATCH] sudo: set default pwfeedback --- modules/other/user.nix | 43 +++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/modules/other/user.nix b/modules/other/user.nix index fa950cc..134731b 100644 --- a/modules/other/user.nix +++ b/modules/other/user.nix @@ -27,24 +27,29 @@ _: { services.upower.enable = true; # removes need for password for nixos-rebuild - security.sudo.extraRules = [ - { - users = ["tomasr"]; - commands = [ - { - command = "/run/current-system/sw/bin/nixos-rebuild"; - options = ["NOPASSWD"]; - } - { - command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild"; - options = ["NOPASSWD"]; - } - { - command = "${pkgs-unstable.nixos-rebuild}/bin/nixos-rebuild"; - options = ["NOPASSWD"]; - } - ]; - } - ]; + security.sudo = { + extraRules = [ + { + users = ["tomasr"]; + commands = [ + { + command = "/run/current-system/sw/bin/nixos-rebuild"; + options = ["NOPASSWD"]; + } + { + command = "${pkgs.nixos-rebuild}/bin/nixos-rebuild"; + options = ["NOPASSWD"]; + } + { + command = "${pkgs-unstable.nixos-rebuild}/bin/nixos-rebuild"; + options = ["NOPASSWD"]; + } + ]; + } + ]; + extraConfig = '' + Default pwfeedback + ''; + }; }; }