1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-09 18:30:01 +01:00

chore: clean up

This commit is contained in:
TheGeneralist 2025-07-03 09:03:46 +02:00
parent e190c5cbaa
commit cd8c34f8da
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
18 changed files with 399 additions and 301 deletions

View file

@ -1,15 +1,13 @@
# TODO: this
# { lib, ... }: let
# sshOptions = {
# PermitRootLogin = "no";
# PasswordAuthentication = "no";
# };
# in {
# services.openssh = {
# enable = true;
# extraConfig = sshOptions
# |> lib.mapAttrsToList (name: value: "${name} ${value}")
# |> lib.concatStringsSep "\n";
# };
# }
{}
{ lib, ... }: let
sshOptions = {
PermitRootLogin = "no";
PasswordAuthentication = "no";
};
in {
services.openssh = {
enable = true;
extraConfig = sshOptions
|> lib.mapAttrsToList (name: value: "${name} ${value}")
|> lib.concatStringsSep "\n";
};
}