modules/darwin/common: add customer user
This commit is contained in:
parent
e6eb662b36
commit
4acae13372
1 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,12 @@
|
||||||
{ inputs, pkgs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
|
let
|
||||||
|
authorizedKeys = {
|
||||||
|
keys = [
|
||||||
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDPVjRBomWFJNNkZb0g5ymLmc3pdRddIScitmJ9yC+ap" # deployment
|
||||||
|
];
|
||||||
|
keyFiles = pkgs.lib.filesystem.listFilesRecursive "${toString inputs.self}/users/keys";
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./apfs-cleanup.nix
|
./apfs-cleanup.nix
|
||||||
|
@ -12,12 +20,8 @@
|
||||||
# TODO: refactor this to share /users with nixos
|
# TODO: refactor this to share /users with nixos
|
||||||
# if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
|
# if user is removed the keys need to be removed manually from /etc/ssh/authorized_keys.d
|
||||||
users.users = {
|
users.users = {
|
||||||
hetzner.openssh.authorizedKeys = {
|
customer.openssh = { inherit authorizedKeys; };
|
||||||
keys = [
|
hetzner.openssh = { inherit authorizedKeys; };
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDPVjRBomWFJNNkZb0g5ymLmc3pdRddIScitmJ9yC+ap" # deployment
|
|
||||||
];
|
|
||||||
keyFiles = pkgs.lib.filesystem.listFilesRecursive "${toString inputs.self}/users/keys";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nix-daemon.enable = true;
|
services.nix-daemon.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue