users: add richard
This commit is contained in:
parent
0d0b3e2d2d
commit
bae6a97842
6
common/users/default.nix
Normal file
6
common/users/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./qenya.nix
|
||||||
|
./richard.nix
|
||||||
|
];
|
||||||
|
}
|
12
common/users/richard.nix
Normal file
12
common/users/richard.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
let keys = import ../../keys.nix;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
users.users.richard = {
|
||||||
|
isNormalUser = true;
|
||||||
|
home = "/home/richard";
|
||||||
|
openssh.authorizedKeys.keys = keys.users.richard;
|
||||||
|
uid = 1002;
|
||||||
|
};
|
||||||
|
}
|
2
hive.nix
2
hive.nix
|
@ -28,7 +28,7 @@ in {
|
||||||
./common/ssh.nix
|
./common/ssh.nix
|
||||||
./common/sudo.nix
|
./common/sudo.nix
|
||||||
./common/utilities.nix
|
./common/utilities.nix
|
||||||
./common/users/qenya.nix
|
./common/users
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
3
keys.nix
3
keys.nix
|
@ -9,5 +9,8 @@
|
||||||
qenya = [
|
qenya = [
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru"
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJEmkV9arotms79lJPsLHkdzAac4eu3pYS08ym0sB/on qenya@tohru"
|
||||||
];
|
];
|
||||||
|
richard = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHAuYWPfYVKdjBY/gBMt2n11Seb+hMqjui1PQ6C4ph8i richard@tress"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue