configuration/common/components/users.system.nix
2023-11-28 09:46:03 -08:00

22 lines
523 B
Nix

{ pkgs, ... }:
let
inherit (builtins) readFile;
identity = import ../resources/identity.nix;
in
{
users.mutableUsers = false;
users.groups.${identity.username}.gid = 1000;
users.users.${identity.username} = {
isNormalUser = true;
uid = 1000;
group = identity.username;
extraGroups = [ "wheel" ];
description = identity.name.short;
hashedPassword = readFile ../local/resources/${identity.username}.passwd;
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [ identity.ssh ];
};
}