summaryrefslogtreecommitdiff
path: root/hosts/ahmed/ssh.nix
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2024-02-20 19:00:53 +0100
committerLinnnus <[email protected]>2024-02-20 19:01:44 +0100
commit274e08f50faffe1b8e4a760811b0a12450eae719 (patch)
tree393449e81f21b6f6b1ea7a701cef0f740cc3b757 /hosts/ahmed/ssh.nix
parent1bbdd3f63a9d8c46b1772cbf2ad9fd83d7ef213b (diff)
Merge 'reorg' into 'main'
This patch moves in the reorganizational work done on the reorg branch, mainly: * Move host-specific modules into hosts/<host>/<module> * Break up HM config See the reorg branch for the individual commits.
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
- ];
- });
-}