autorisation de 'sudo mtr' pour tous les users

extraction-donnees-privees 2016-08-16-monstre
Jean-Pierre PRUNARET 9 years ago
parent c2d3bb8cb4
commit 6c45e0bfa2

@ -13,6 +13,7 @@ in
./environment.nix ./environment.nix
./localisation.nix ./localisation.nix
#./network-ipv6.nix #./network-ipv6.nix
./sudo.nix
./service-haveged.nix ./service-haveged.nix
./service-monitoring.nix ./service-monitoring.nix
./service-ssh.nix ./service-ssh.nix

@ -0,0 +1,17 @@
{ config, lib, pkgs, ... }:
let
inherit (lib) mkIf mkMerge mkThenElse;
cfg = config.r6d.config-generator;
computers = config.r6d.computers;
profiles = config.r6d.profiles;
in
mkIf true {
# Authorisation de certaines applications par sudo sans mot de passe
security.sudo.extraConfig = ''
%users ALL = NOPASSWD: ${pkgs.mtr}/bin/mtr
'';
}
Loading…
Cancel
Save