From b51f9bc1014ce350abe73f2c419e0bf6512194c2 Mon Sep 17 00:00:00 2001 From: Andrey0189 Date: Wed, 17 Apr 2024 05:52:14 +0500 Subject: Initial commit --- nixos/modules/user.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nixos/modules/user.nix (limited to 'nixos/modules/user.nix') diff --git a/nixos/modules/user.nix b/nixos/modules/user.nix new file mode 100644 index 0000000..ea59b78 --- /dev/null +++ b/nixos/modules/user.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }: { + programs.zsh.enable = true; + + users = { + defaultUserShell = pkgs.zsh; + + users.amper = { + isNormalUser = true; + description = "Ampersand"; + extraGroups = [ "networkmanager" "wheel" "input" "libvirtd" ]; + packages = with pkgs; []; + }; + }; + + # Enable automatic login for the user. + services.getty.autologinUser = "amper"; +} -- cgit v1.2.3