2022-07-31 11:03:59 +02:00
|
|
|
# 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;
|
|
|
|
|
2023-04-03 01:33:45 +02:00
|
|
|
users.root.hashedPassword = secret.passwordHashes.main or "";
|
2022-07-31 11:03:59 +02:00
|
|
|
users.main = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/main";
|
2022-11-23 20:48:59 +01:00
|
|
|
hashedPassword = secret.passwordHashes.main or "";
|
2022-07-31 11:03:59 +02:00
|
|
|
description = "main";
|
|
|
|
|
|
|
|
uid = 1000;
|
|
|
|
|
|
|
|
extraGroups = ["wheel" "audio"];
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFVkFvalffJ/SMjJGG3WPiqCqFygnWzhGUaeALBIoCsJ (none)"];
|
|
|
|
};
|
|
|
|
|
|
|
|
groups.main = {
|
|
|
|
gid = 1000;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|