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 + ''; + }; }; }