From 1f3e4b6ad522a186d2b693953b4c6f5ab1e892b7 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 2 Dec 2022 08:10:15 +0000 Subject: add editorconfig and alejandra --- hosts/common/security.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'hosts/common/security.nix') diff --git a/hosts/common/security.nix b/hosts/common/security.nix index debd6b7..2d473be 100644 --- a/hosts/common/security.nix +++ b/hosts/common/security.nix @@ -1,7 +1,10 @@ -{ lib, config, ... }: - -with builtins; with lib; { + lib, + config, + ... +}: +with builtins; +with lib; { security.sudo = { configFile = '' Defaults env_reset @@ -10,8 +13,15 @@ with builtins; with lib; ''; execWheelOnly = true; extraRules = [ - { users = [ "root" ]; groups = [ "root" ]; commands = [ "ALL" ]; } - { users = [ "seth" ]; commands = [ "ALL" ]; } + { + users = ["root"]; + groups = ["root"]; + commands = ["ALL"]; + } + { + users = ["seth"]; + commands = ["ALL"]; + } ]; }; } -- cgit v1.2.3