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 +++++++++++++++----- hosts/common/users.nix | 15 ++++++++++----- 2 files changed, 25 insertions(+), 10 deletions(-) (limited to 'hosts/common') 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"]; + } ]; }; } diff --git a/hosts/common/users.nix b/hosts/common/users.nix index 1dd219e..0d2681e 100644 --- a/hosts/common/users.nix +++ b/hosts/common/users.nix @@ -1,18 +1,23 @@ -{ config, lib, pkgs, ... }: - -with config; with lib; with pkgs; { + config, + lib, + pkgs, + ... +}: +with config; +with lib; +with pkgs; { users = { defaultUserShell = bash; mutableUsers = false; users = { - root = { home = "/root"; uid = ids.uids.root; group = "root"; initialHashedPassword = mkDefault "!"; }; - + }; + }; } -- cgit v1.2.3