blob: d3e7cb4e838c7baa4f62f5350a66cc12ba9455a6 (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{
config,
pkgs,
lib,
...
}:
let
cfg = config.depot.users;
inherit (builtins)
attrValues
;
inherit (lib) mkIf mkEnableOption;
keys = {
t480 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEOw8YEbHsKy38JHp9W1wcxxZgWCDgnabOXccZUN5ddd";
t1 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP7T2uWJFUu8aFZZgQusGKyEMocb2pKbHLDad2eIJus9";
};
in
{
options.depot.users.kle.enable = mkEnableOption "kle user";
config.users.users.kle = mkIf cfg.kle.enable {
initialHashedPassword = "$6$R4dDhaftX.vapGMd$.An36hlp3DXfkIC7bPZ0MDPo6Zvpk8JRrhy2LES.lZZj6JDa74oJkcMW3DCsIySvLJxOPXSShos0TpgJ/w0fH/";
isNormalUser = true;
shell = pkgs.fish;
home = "/persist/usr/kle";
createHome = true;
extraGroups = [
"wheel"
"users"
"networkmanager"
"video"
"kvm"
"i2c"
"dialout"
];
packages = with pkgs; [
btop
curl
fzf
guvcview
jq
jujutsu
lynx
neovim
ripgrep
rsync
sshfs
tree
watchman
zip
# passwords
pinentry-qt
rbw
depot.perf-flamegraph
# email
isync
msmtp
mu
# nix debugging
nil
nix-search-cli
nixfmt
];
openssh.authorizedKeys.keys = attrValues keys;
};
}
|