mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-19 15:53:46 +01:00
feat: remove nur & devenv feat: adjust the structure to make it suitable for servers feat: add iso/proxmox generators and add docs about it feat: update ryan's openssh keys & add hashedPassword feat: add proxmox's nodes into ssh_config, with alias
22 lines
681 B
Nix
22 lines
681 B
Nix
{ ... }:
|
||
|
||
{
|
||
users.groups = {
|
||
ryan = { };
|
||
docker = { };
|
||
wireshark = { };
|
||
};
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users.users.ryan = {
|
||
# the hashed password with salt is generated by run `mkpasswd`.
|
||
hashedPassword = "$y$j9T$YQu5vhlnogjDFDWp9QkPh0$Eu85OiwllqvLg5fzRVMLVHNO7InA3ro8grTJJIepyH1";
|
||
home = "/home/ryan";
|
||
isNormalUser = true;
|
||
description = "ryan";
|
||
extraGroups = [ "ryan" "users" "networkmanager" "wheel" "docker" "wireshark" "adbusers" ];
|
||
openssh.authorizedKeys.keys = [
|
||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDiipi59EnVbi6bK1bGrcbfEM263wgdNfbrt6VBC1rHx ryan@ai-idols"
|
||
];
|
||
};
|
||
}
|