users: add raf

This commit is contained in:
NotAShelf 2024-02-05 07:53:43 +03:00
parent dc5b8d2c86
commit a41e77e15e
No known key found for this signature in database
GPG key ID: 02D1DD3FA08B6B29
2 changed files with 14 additions and 0 deletions

1
users/keys/raf Normal file
View file

@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBGIjogtYXThugq7LkeMHQVMls8DDHOcGTmayFyy7Ji1 raf@notashelf.dev

13
users/raf.nix Normal file
View file

@ -0,0 +1,13 @@
{lib, ...}: let
userLib = import ./lib.nix {inherit lib;};
in {
users.users.mihai = {
openssh.authorizedKeys.keyFiles = [./keys/raf];
isNormalUser = true;
extraGroups = [
"wheel"
"trusted"
];
uid = userLib.mkUid "rafi";
};
}