Add emery shell to hydra

This commit is contained in:
Ehmry - 2019-11-22 21:58:23 +01:00
parent ea1f9e8abc
commit 4515842937
2 changed files with 29 additions and 0 deletions

View File

@ -10,6 +10,7 @@
./../../lib/hq.nix
./../../lib/yggdrasil.nix
./../../lib/tun.nix
./../../lib/emery.nix
];
services.yggdrasil.config =

28
lib/emery.nix Normal file
View File

@ -0,0 +1,28 @@
{ config, pkgs, ... }:
let
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICgL2kRs+cXAcUzOO2Tp+mtMBVuHqMuslQy3LN+HLSP4 emery@nixos"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMVmyXQNE5IhcFdAWNfd4Cgg+rc+z/uClSQdPcaAVbYf emery@nixos"
];
in {
programs = {
fish.enable = true;
tmux.enable = true;
};
users.users.emery = {
isNormalUser = true;
description = "Emery";
extraGroups = [ "users" "wheel" ];
hashedPassword =
"$6$ZgiLSFCQPW0DB0i$aPeZ9E62y2OvqRbNAEL.8IK30YgvyLy6UOitN6A.li.YmUrmYAh1ukB844MFp3KlTpYzi5e80hRIg1Vx1F0uO/";
openssh.authorizedKeys = { inherit keys; };
shell = pkgs.fish;
};
users.users.root.openssh = {
inherit (config.users.users.emery.openssh) authorizedKeys;
};
}