diff options
author | Franck Cuny <franck@fcuny.net> | 2022-03-12 19:44:53 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-03-12 19:44:53 -0800 |
commit | 14f0d59284952f2c228aa959c17acb0be652ed96 (patch) | |
tree | 8f2ac0bb60e9fbaf4902e49ef51eff5f9b0114b1 | |
parent | containers: enable dockerd and containerd on aptos (diff) | |
download | world-14f0d59284952f2c228aa959c17acb0be652ed96.tar.gz |
users: add another ssh key
Diffstat (limited to '')
-rw-r--r-- | hosts/common/system/users.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hosts/common/system/users.nix b/hosts/common/system/users.nix index 30c1a31..95c9027 100644 --- a/hosts/common/system/users.nix +++ b/hosts/common/system/users.nix @@ -1,6 +1,8 @@ { config, lib, pkgs, ... }: { + # Users are managed through this configuration. If a user is added + # manually, it will be removed on system activation. users.mutableUsers = false; users.groups.fcuny = { gid = 1000; }; @@ -11,15 +13,19 @@ home = "/home/fcuny"; shell = pkgs.zsh; extraGroups = [ "users" "wheel" ]; - hashedPassword = "$6$i.z1brxtb44JAEco$fDD2Izl.zRR9vBCB2VBKPScChGw38EEl7QEiBTJ/EwgP3oSL0X3ZHq0PJ.RtqzBsWTPUjl4F3MKOBMhnaAPr6."; + hashedPassword = + "$6$i.z1brxtb44JAEco$fDD2Izl.zRR9vBCB2VBKPScChGw38EEl7QEiBTJ/EwgP3oSL0X3ZHq0PJ.RtqzBsWTPUjl4F3MKOBMhnaAPr6."; openssh.authorizedKeys.keys = [ # aptos "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIdlm/qoR/dnMjZhVSTtqFzkgN3Yf9eQ3pgKMiipg+dl" + # work + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINSWhXmnUplM+xltD0sYiJ6AsjkwHvbjTYLA7GHXHja9" ]; }; users.users.root = { hashedPassword = null; - openssh.authorizedKeys.keys = config.users.users.fcuny.openssh.authorizedKeys.keys; + openssh.authorizedKeys.keys = + config.users.users.fcuny.openssh.authorizedKeys.keys; }; } |