Commit 14f7eafa1754
Changed files (3)
systems
common
users
systems/common/users/default.nix
@@ -2,6 +2,7 @@
{
# Default users, to create everywhere
imports = [
+ ./root.nix
./vincent.nix
];
users.motd = with config; ''
systems/common/users/root.nix
@@ -0,0 +1,9 @@
+{
+ globals,
+ ...
+}:
+{
+ users.users.root = {
+ openssh.authorizedKeys.keys = globals.ssh.vincent ++ [ globals.machines.shikoku.ssh.vincent ];
+ };
+}
globals.nix
@@ -109,6 +109,11 @@
};
};
};
+ shikoku = {
+ ssh = {
+ vincent = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGxstR3xEf87leVVDS3GVPx8Ap9+eP+OfkSvM26V54XP vincent@shikoku";
+ };
+ };
};
# FIXME Maybe I should move this elsewhere, in ./lib maybe ?
fn = {