feat: restrict nix commands to sudoers

This commit is contained in:
Laureηt 2022-12-23 15:28:14 +01:00
parent 80990950a0
commit 1f2a2a706d
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -26,6 +26,9 @@ in {
# clean /tmp at each boot # clean /tmp at each boot
boot.cleanTmpDir = true; boot.cleanTmpDir = true;
# restrict nix command to sudoers
nix.allowedUsers = [ "@wheel" ];
# hardware # hardware
hardware = { hardware = {
enableRedistributableFirmware = true; enableRedistributableFirmware = true;