nix: add vps setup

This commit is contained in:
Oleksandr Smirnov 2026-01-14 21:45:55 +02:00
parent 028a52d9ff
commit 4240620b6b
No known key found for this signature in database
13 changed files with 498 additions and 0 deletions

15
nix/users/q.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, ... }:
{
age.secrets.q-password.file = ../secrets/q-password.age;
users.users.q = {
isNormalUser = true;
extraGroups = [ "wheel" ];
# initialPassword = "qwerty123";
hashedPasswordFile = config.age.secrets.q-password.path;
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPLLJdkVYKZgsayw+sHanKPKZbI0RMS2CakqBCEi5Trz" # laptop
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINeXccmMQ9jfLG2Z8CITaZZ+pUgYVNVYDFtmdkBHd3xk u0_a930@localhost" # phone
];
};
}