1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 03:32:08 +01:00
github.com-tboerger-nixos-c.../home/thomas/user.nix

36 lines
787 B
Nix
Raw Normal View History

{ pkgs, lib, config, options, ... }:
with lib;
{
users = {
users = {
thomas = {
uid = 10000;
description = "Thomas Boerger";
shell = pkgs.zsh;
isNormalUser = true;
hashedPasswordFile = config.age.secrets."users/thomas/password".path;
openssh = {
authorizedKeys = {
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINaQYR0/Oj6k1H03kshz2J7rlGCaDSuaGPhhOs9FcZfn Thomas Boerger"
];
};
};
extraGroups = [
"wheel"
"docker"
"libvirtd"
"audio"
"video"
"networkmanager"
];
};
};
};
age.secrets."users/thomas/password" = {
file = ../../secrets/users/thomas/password.age;
};
}