summaryrefslogtreecommitdiff
path: root/hosts/ahmed/ssh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/ahmed/ssh.nix')
-rw-r--r--hosts/ahmed/ssh.nix19
1 files changed, 0 insertions, 19 deletions
diff --git a/hosts/ahmed/ssh.nix b/hosts/ahmed/ssh.nix
deleted file mode 100644
index 3c6b7ad..0000000
--- a/hosts/ahmed/ssh.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-# This file configures openSSH on this host.
-{
- lib,
- metadata,
- ...
-}: {
- # Who is allowed/expected to connect to this machine?
- networking.firewall.allowedTCPPorts = [22];
- services.openssh = {
- enable = true;
- settings.PasswordAuthentication = false;
- };
-
- users.users = lib.genAttrs ["root" "linus"] (_: {
- openssh.authorizedKeys.keys = [
- metadata.hosts.muhammed.sshPubKey
- ];
- });
-}