From 65f71da77061339b4ed9b33508e95049a4e77cb4 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 4 Jun 2024 21:11:53 +0530 Subject: os/common/{environment,user}: init --- os/common/modules/user.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 os/common/modules/user.nix (limited to 'os/common/modules/user.nix') diff --git a/os/common/modules/user.nix b/os/common/modules/user.nix new file mode 100644 index 0000000..d6c341b --- /dev/null +++ b/os/common/modules/user.nix @@ -0,0 +1,16 @@ +{ config, ... }: let + user = config.global.userdata.name; + email = config.global.userdata.email; +in { + users.users.${user} = { + uid = 1000; + isNormalUser = true; + description = email; + extraGroups = [ "wheel" ]; + + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAcCendbKbeoc7hYEEcBt9wwtSXrJUgJ2SuYARO0zPAX sinan@veu" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL8LnyOuPmtKRqAZeHueNN4kfYvpRQVwCivSTq+SZvDU sinan@cez" + ]; + }; +} -- cgit v1.2.3