Skip to content

Commit

Permalink
nix: add openssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
FredeHoey committed Mar 9, 2024
1 parent e3aedd3 commit 3f52571
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
modules = [
./systems/base.nix
./systems/server.nix
./modules/ssh.nix
];
};
};
Expand Down
10 changes: 10 additions & 0 deletions modules/ssh.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
services.openssh = {
enable = true;
settings = {
AllowUsers = ["bun"];
PasswordAuthentication = false;
};
};
}

0 comments on commit 3f52571

Please sign in to comment.