chore: clean up
This commit is contained in:
parent
e190c5cbaa
commit
cd8c34f8da
18 changed files with 399 additions and 301 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, ... }: let
|
||||
let
|
||||
numbers = [
|
||||
"1" "2" "3" "4" "5" "6" "7" "8" "9" "0"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue