blob: eca9e1b7a105b7ffc79f32704a3bb327084356b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
{ lib, ... }:
with lib;
let
home = "/home/${my.username}";
in
{
ark.directories = [ home ];
users = {
mutableUsers = false;
users = {
root.hashedPassword = "@HASHED_PASSWORD@";
${my.username} = {
isNormalUser = true;
uid = 1000;
description = my.fullname;
inherit home;
inherit (my) hashedPassword;
openssh.authorizedKeys.keys = [ my.ssh.key ];
extraGroups = [ "wheel" ];
};
};
};
}
|