Add emery shell to hydra
This commit is contained in:
parent
ea1f9e8abc
commit
4515842937
|
@ -10,6 +10,7 @@
|
|||
./../../lib/hq.nix
|
||||
./../../lib/yggdrasil.nix
|
||||
./../../lib/tun.nix
|
||||
./../../lib/emery.nix
|
||||
];
|
||||
|
||||
services.yggdrasil.config =
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue