From 2cdd02b0240f4877fd693fcd91c1ad7445344e0a Mon Sep 17 00:00:00 2001 From: aaron Date: Sun, 28 Dec 2025 18:49:10 +0100 Subject: [PATCH] feature(users): add module that handles users and their shell --- modules/nixos/users.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/nixos/users.nix diff --git a/modules/nixos/users.nix b/modules/nixos/users.nix new file mode 100644 index 0000000..ea8630d --- /dev/null +++ b/modules/nixos/users.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: + +{ + # create users + users.users.aaron = { + isNormalUser = true; + group = "users"; + extraGroups = [ "wheel" "networkmanager" ]; + shell = pkgs.zsh; + }; + + # add default zsh config + programs.zsh = { + enable = true; + enableCompletion = true; + autosuggestions.enable = true; + ohMyZsh = { + enable = true; + plugins = [ "git" "sudo" ]; + theme = "gentoo"; + }; + }; +}