diff options
Diffstat (limited to 'hosts/common')
| -rw-r--r-- | hosts/common/security.nix | 20 | ||||
| -rw-r--r-- | hosts/common/users.nix | 15 |
2 files changed, 25 insertions, 10 deletions
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 "!"; }; - + }; + }; } |
