aboutsummaryrefslogtreecommitdiff
path: root/modules/hosts/system/users.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hosts/system/users.nix')
-rw-r--r--modules/hosts/system/users.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/hosts/system/users.nix b/modules/hosts/system/users.nix
new file mode 100644
index 0000000..5ecdfba
--- /dev/null
+++ b/modules/hosts/system/users.nix
@@ -0,0 +1,22 @@
+{
+ config,
+ username,
+ pkgs,
+ lib,
+ ...
+}:
+
+{
+ users.users."${username}" = {
+ isNormalUser = true;
+ extraGroups = [
+ "wheel"
+ "video"
+ "input"
+ (lib.mkIf config.networking.networkmanager.enable "networkmanager")
+ ];
+ shell = pkgs.zsh;
+ ignoreShellProgramCheck = true;
+ };
+ security.sudo.wheelNeedsPassword = false;
+}