blob: 8dc27a306ddfe8ecf50b2146038b8e01706aad03 (
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
|
{pkgs, ...}: {
personal.user.enable = true;
users = {
users = {
nixremote = {
isSystemUser = true;
shell = pkgs.busybox-sandbox-shell;
group = "nixremote";
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEgohiYF2Dsaq6ImGaslnKJMwpiVtwAaM9cm1tpSRr7t root@kerberos"
];
};
hermes = {
isNormalUser = true;
shell = pkgs.busybox-sandbox-shell;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGstvYymapGvkjvKbFqkMZtE9ft9uEM13n8q798HtOT+ root@hermes"
];
homeMode = "700";
};
};
groups.nixremote = {};
};
system.userActivationScripts.hermesSetup = ''
if [ $(whoami) = hermes ]
then
mkdir --parents --mode=700 nixos-configuration
git init --bare nixos-configuration
fi
'';
}
|