Revert "modules: improve settings to configure nopasswd commands"

This reverts commit a501f2ea16.
This commit is contained in:
Dmitriy Pleshevskiy 2024-09-29 17:07:33 +03:00
parent 29c1290f08
commit 34ba9c0f55
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
5 changed files with 10 additions and 7 deletions

View file

@ -36,4 +36,14 @@
local.programs.pass.enable = lib.mkDefault true;
local.programs.browsers.librewolf.enable = lib.mkDefault true;
security.sudo.extraRules = [{
commands = [
{
command = "/run/current-system/sw/bin/nixos-container";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
}

View file

@ -5,7 +5,6 @@
./fonts.nix
./keyboard.nix
./nix.nix
./security.nix
./sound.nix
./system.nix
./yubikey.nix

View file

@ -39,8 +39,6 @@ in
config = lib.mkIf isEnable {
environment.systemPackages = hostPackages;
local.security.sudo.nopasswd = [{ commands = hostPackages; }];
local.sound.systemWide = true;
containers.browsers = {

View file

@ -27,8 +27,6 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ hostSkype ];
local.security.sudo.nopasswd = [{ commands = [ hostSkype ]; }];
local.sound.systemWide = true;
containers.skype = {

View file

@ -27,8 +27,6 @@ in
config = lib.mkIf cfg.enable {
environment.systemPackages = [ hostTelegram ];
local.security.sudo.nopasswd = [{ commands = [ hostTelegram ]; }];
local.sound.systemWide = true;
containers.telegram = {