2021-05-18 14:33:28 +00:00
|
|
|
{
|
2022-03-08 01:42:46 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
openssh.authorizedKeys.keys = pkgs.privateValue [] "ssh-keys";
|
2023-02-02 03:58:37 +00:00
|
|
|
passwordFile = lib.mkIf (config.networking.hostName != "chor-cloud") config.age.secrets.pam-login-password.path;
|
2022-03-08 01:42:46 +00:00
|
|
|
in {
|
2019-07-26 15:31:26 +00:00
|
|
|
users.users = {
|
2020-09-30 23:30:40 +00:00
|
|
|
maralorn = {
|
|
|
|
description = "maralorn";
|
2018-02-08 23:51:40 +00:00
|
|
|
isNormalUser = true;
|
|
|
|
uid = 1000;
|
2022-10-25 20:30:05 +00:00
|
|
|
extraGroups = ["wheel" "systemd-journal" "networkmanager" "docker" "video" "adbusers" "dialout"];
|
2020-09-30 23:30:40 +00:00
|
|
|
inherit openssh passwordFile;
|
2018-02-08 23:51:40 +00:00
|
|
|
};
|
2022-03-08 01:42:46 +00:00
|
|
|
root = {inherit openssh passwordFile;};
|
2018-02-08 23:51:40 +00:00
|
|
|
};
|
|
|
|
}
|