blob: a92a38ef6fbfd406720b580a4ddf07a09d6abf1b (
plain) (
blame)
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
27
28
29
30
|
{
lib,
localUsername ? lib.my.username,
...
}:
with lib;
let
home = "/home/${localUsername}";
in
{
ark.directories = [ home ];
users = {
mutableUsers = false;
users = {
root.hashedPassword = "@HASHED_PASSWORD@";
${localUsername} = {
isNormalUser = true;
uid = 1000;
description = my.fullname;
inherit home;
inherit (my) hashedPassword;
openssh.authorizedKeys.keys = [ my.ssh.key ];
extraGroups = [ "wheel" ];
};
};
};
}
|