remove samba stuff from netdata again

This commit is contained in:
Ingolf Wagner 2022-11-05 12:18:57 +01:00
parent 4a01d917e3
commit ba7aa1f1a7
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -7,20 +7,20 @@
"memory mode" = "ram"; "memory mode" = "ram";
}; };
}; };
configDir."python.d.conf" = pkgs.writeText "python.d.conf" '' #configDir."python.d.conf" = pkgs.writeText "python.d.conf" ''
example: yes # example: yes
default_run: no # default_run: no
samba: yes # samba: yes
''; #'';
}; };
# add samba to path of python plugin # add samba to path of python plugin
systemd.services.netdata.path = [ pkgs.sudo pkgs.samba ]; #systemd.services.netdata.path = [ pkgs.sudo pkgs.samba ];
systemd.services.netdata.serviceConfig.CapabilityBoundingSet = [ "~" ]; #systemd.services.netdata.serviceConfig.CapabilityBoundingSet = [ "~" ];
security.sudo.extraConfig = '' #security.sudo.extraConfig = ''
netdata ALL=(root) NOPASSWD: ${pkgs.samba}/bin/smbstatus # netdata ALL=(root) NOPASSWD: ${pkgs.samba}/bin/smbstatus
netdata ALL=(root) NOPASSWD: /run/current-system/sw/bin/smbstatus # netdata ALL=(root) NOPASSWD: /run/current-system/sw/bin/smbstatus
''; #'';
} }