user accept xps ssh

+ refactor
This commit is contained in:
Lennart J. Kurzweg (Nx2)
2025-10-05 00:20:27 +02:00
parent 6809a6494f
commit f7de7f740d

View File

@@ -1,36 +1,37 @@
{ pkgs, ... }@all: with all; { pkgs, ... }@all: with all; {
{ users = {
users.defaultUserShell = pkgs.bash; # if interactive, itll switch to fish defaultUserShell = pkgs.bash; # if interactive, itll switch to fish
users."${hyper.user}" = {
users.users."${hyper.user}" = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ extraGroups = [
# TODO: actually put the groups into the relevant files # TODO: actually put the groups into the relevant files
"networkmanager"
"wheel"
"audio"
"video"
"lp"
"scanner"
"docker"
"libvirtd"
"uinput"
"input"
"ydotool"
"acme" "acme"
"nginx"
"adbusers" "adbusers"
"audio"
"audiobookshelf"
"copyparty"
"docker"
"input"
"libvirtd"
"lp"
"networkmanager"
"nextcloud"
"nginx"
"postgres" "postgres"
"radicale" "radicale"
"audiobookshelf" "scanner"
"nextcloud" "uinput"
"video"
"wheel"
"ydotool"
]; ];
useDefaultShell = true; useDefaultShell = true;
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID1RPCcS8DtIf75a2FEW4d8X6WTVeLlmretoLqppvZlJ" # From [A] GPG Sub Key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID1RPCcS8DtIf75a2FEW4d8X6WTVeLlmretoLqppvZlJ" # From [A] GPG Sub Key
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE5sYVtPLHXatTjrpol46xr9R4TidcB4t8axO6/ReNNR nx2@ssh.nx2.site" # NxXPS
]; ];
}; };
};
programs = { programs = {
bash = { bash = {
interactiveShellInit = '' interactiveShellInit = ''