chore: move to username variable

This commit is contained in:
Ahwx 2026-05-11 03:02:04 +02:00
parent 08a8985f5d
commit b2c18291f0
3 changed files with 10 additions and 4 deletions

View file

@ -1,4 +1,9 @@
{ lib, config, ... }:
{
lib,
config,
username,
...
}:
{
services.openssh = {
enable = true;
@ -13,7 +18,7 @@
networking.firewall.allowedTCPPorts = config.services.openssh.ports;
users.users.liv.openssh.authorizedKeys.keys = [
users.users.${username}.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGXi00z/rxVrWLKgYr+tWIsbHsSQO75hUMSTThNm5wUw liv@sakura" # sakura
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHv2zxCy22KU1tZOH2hA1p8fWVpOSrTYF68+3E5r330O liv@ichiyo" # ichiyo
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKQtG69zrMFsoHForwZEi66y1tPvctqg1OgjQFrF3OI+ liv@iris" # iris