From 4c5e85031bbc13c9987074756e024972784126f2 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Fri, 7 Jun 2024 10:06:58 +0200 Subject: [PATCH] Move vlopez user to jungleUsers for koro host Access to other machines can be easily added into the "hosts" attribute without the need to replicate the configuration. Reviewed-by: Aleix Roca Nonell --- m/common/base/users.nix | 13 +++++++++++++ m/koro/configuration.nix | 1 - m/koro/users.nix | 17 ----------------- 3 files changed, 13 insertions(+), 18 deletions(-) delete mode 100644 m/koro/users.nix diff --git a/m/common/base/users.nix b/m/common/base/users.nix index 71b9749..3d21b0c 100644 --- a/m/common/base/users.nix +++ b/m/common/base/users.nix @@ -74,6 +74,19 @@ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILWjRSlKgzBPZQhIeEtk6Lvws2XNcYwHcwPv4osSgst5 anavarro@ssfhead" ]; }; + + vlopez = { + uid = 4334; + isNormalUser = true; + home = "/home/Computational/vlopez"; + description = "Victor López"; + group = "Computational"; + hosts = [ "koro" ]; + hashedPassword = "$6$0ZBkgIYE/renVqtt$1uWlJsb0FEezRVNoETTzZMx4X2SvWiOsKvi0ppWCRqI66S6TqMBXBdP4fcQyvRRBt0e4Z7opZIvvITBsEtO0f0"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGMwlUZRf9jfG666Qa5Sb+KtEhXqkiMlBV2su3x/dXHq victor@arch" + ]; + }; }; groups = { diff --git a/m/koro/configuration.nix b/m/koro/configuration.nix index 864efe5..4214fee 100644 --- a/m/koro/configuration.nix +++ b/m/koro/configuration.nix @@ -7,7 +7,6 @@ ../eudy/cpufreq.nix ../eudy/users.nix - ./users.nix ./kernel.nix ]; diff --git a/m/koro/users.nix b/m/koro/users.nix deleted file mode 100644 index 4a4f794..0000000 --- a/m/koro/users.nix +++ /dev/null @@ -1,17 +0,0 @@ -{ ... }: - -{ - users.users = { - vlopez = { - uid = 4334; - isNormalUser = true; - home = "/home/Computational/vlopez"; - description = "Victor López"; - group = "Computational"; - hashedPassword = "$6$0ZBkgIYE/renVqtt$1uWlJsb0FEezRVNoETTzZMx4X2SvWiOsKvi0ppWCRqI66S6TqMBXBdP4fcQyvRRBt0e4Z7opZIvvITBsEtO0f0"; - openssh.authorizedKeys.keys = [ - "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGMwlUZRf9jfG666Qa5Sb+KtEhXqkiMlBV2su3x/dXHq victor@arch" - ]; - }; - }; -}