diff options
author | Linnnus <[email protected]> | 2023-10-01 22:43:58 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-10-01 23:08:32 +0200 |
commit | 7e27f6f2250bd4e0faa5d5e626dce541a8bb22e4 (patch) | |
tree | 11eb68ec0ae6e1f9cd1f4d7b645cc55e582b1873 /hosts/ahmed/ssh.nix | |
parent | 241bbaf27ad990d0630b7b48f3e9858e8f42b88f (diff) |
Use alejandra formatter
Diffstat (limited to 'hosts/ahmed/ssh.nix')
-rw-r--r-- | hosts/ahmed/ssh.nix | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hosts/ahmed/ssh.nix b/hosts/ahmed/ssh.nix index dfe4c30..3c6b7ad 100644 --- a/hosts/ahmed/ssh.nix +++ b/hosts/ahmed/ssh.nix @@ -1,19 +1,19 @@ # This file configures openSSH on this host. - -{ lib, metadata, ... }: - { + lib, + metadata, + ... +}: { # Who is allowed/expected to connect to this machine? - networking.firewall.allowedTCPPorts = [ 22 ]; + networking.firewall.allowedTCPPorts = [22]; services.openssh = { enable = true; - settings.PasswordAuthentication = false; + settings.PasswordAuthentication = false; }; users.users = lib.genAttrs ["root" "linus"] (_: { - openssh.authorizedKeys.keys = - [ - metadata.hosts.muhammed.sshPubKey - ]; + openssh.authorizedKeys.keys = [ + metadata.hosts.muhammed.sshPubKey + ]; }); } |