aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-09-21 15:28:08 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-09-21 15:28:08 -0500
commit8fa6ed6444a3df3647bed8396b42936bdf76ab39 (patch)
treeb045bb7e2b2267fec6ecce8372751ccbef1182b7 /modules/services/nixos
parent14d0c1fdf529fce896f46b651d1495288cf3013c (diff)
new machines! random other changes
Diffstat (limited to 'modules/services/nixos')
-rw-r--r--modules/services/nixos/openssh.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/modules/services/nixos/openssh.nix b/modules/services/nixos/openssh.nix
index 4826369..eb8bff6 100644
--- a/modules/services/nixos/openssh.nix
+++ b/modules/services/nixos/openssh.nix
@@ -5,7 +5,6 @@
...
}: let
cfg = config.collinux.services.sshd;
- pure = x: [x];
authorizedKeys =
hosts
@@ -18,15 +17,19 @@ in {
enable = true;
allowSFTP = true;
- hostKeys = pure {
- path = "/etc/ssh/ssh_host_ed25519_key";
- type = "ed25519";
- };
+ hostKeys = [
+ {
+ path = "/etc/ssh/ssh_host_ed25519_key";
+ type = "ed25519";
+ }
+ ];
- listenAddresses = pure {
- addr = "0.0.0.0";
- port = cfg.port;
- };
+ listenAddresses = [
+ {
+ addr = "0.0.0.0";
+ port = cfg.port;
+ }
+ ];
settings = {
PermitRootLogin = "yes";