mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-25 17:46:14 +01:00
8b700b61cc
Signed-off-by: main <magic_rb@redalder.org>
32 lines
611 B
Nix
32 lines
611 B
Nix
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
{
|
|
config,
|
|
lib,
|
|
secret,
|
|
...
|
|
}:
|
|
with lib; {
|
|
users = {
|
|
mutableUsers = false;
|
|
|
|
users.main = {
|
|
isNormalUser = true;
|
|
home = "/home/main";
|
|
hashedPassword = secret.passwordHashes.main or "";
|
|
description = "main";
|
|
|
|
uid = 1000;
|
|
|
|
extraGroups = ["wheel" "audio"];
|
|
|
|
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFVkFvalffJ/SMjJGG3WPiqCqFygnWzhGUaeALBIoCsJ (none)"];
|
|
};
|
|
|
|
groups.main = {
|
|
gid = 1000;
|
|
};
|
|
};
|
|
}
|