From a812707b62157418a739a748349e34c3d244d153 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 16 Aug 2023 15:22:54 +0200 Subject: [PATCH] friends: init with ninjatrappeur --- hosts/epyc.nix | 1 + modules/users/friends.nix | 11 +++++++++++ modules/users/keys/ninjaTrappeur.keys | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 modules/users/friends.nix create mode 100644 modules/users/keys/ninjaTrappeur.keys diff --git a/hosts/epyc.nix b/hosts/epyc.nix index 019c5a9..67025ab 100644 --- a/hosts/epyc.nix +++ b/hosts/epyc.nix @@ -10,6 +10,7 @@ in ../modules/iperf-server.nix ../modules/hypervisor.nix ../modules/hydra/coordinator.nix + ../modules/users/friends.nix ]; networking.hostName = "epyc"; diff --git a/modules/users/friends.nix b/modules/users/friends.nix new file mode 100644 index 0000000..8d5ea3f --- /dev/null +++ b/modules/users/friends.nix @@ -0,0 +1,11 @@ +{ ... }: { + users.users = { + ninjatrappeur = { + isNormalUser = true; + home = "/home/ninjatrappeur"; + shell = "/run/current-system/sw/bin/zsh"; + uid = 2000; + openssh.authorizedKeys.keyFiles = [ ./keys/ninjatrappeur.keys ]; + }; + }; +} diff --git a/modules/users/keys/ninjaTrappeur.keys b/modules/users/keys/ninjaTrappeur.keys new file mode 100644 index 0000000..2dd6171 --- /dev/null +++ b/modules/users/keys/ninjaTrappeur.keys @@ -0,0 +1,3 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQClF9ko5u4zf0CEvleEeRbo9r6BMNgXEGO/rDNZOEHcKxVaeIi+/xF6ZQ5MZbcmH08lswq32hb1XwXg7Gk+ofUdEvCD/kC/vJijt7IFkardy6BNOSWQJLEf6/BpL3LzDQhi7iZXPF46VYoPVGHBh8fKQaAtOCrhbf/8JutfTwCglEztjoiQxY5b8OMfntjBSl6TJwZPJAoQllbJJz9q90sBetvqx6Y08eqIzsSZw6pznpvivRR+TSKU0EkVYS2y2zBAvPK6oyunj5zi01/FACT+Qn70dUkumZAvcPssbl0hCs/xDLgEL6hCEvoszodyMYVn7HS0KwfUlfiGdNUOFHIl +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHzd1XAB7Pc8Tplur5iV3llOXtvlHru8pLtQlbvHzmt1 +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOE7oDtq+xt5RuvMigDZMeZQODFr5Otz6HCO8wnI80oo