Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334{ lib, config, ... }:{ options.my.ssh-server = { allowPasswordAuth = lib.mkOption { type = lib.types.bool; default = false; }; allowedUsers = lib.mkOption { type = lib.types.nullOr (lib.types.listOf lib.types.str); default = null; }; };
config = { services.openssh = let cfg = config.my.ssh-server; in { enable = true; # TODO: That fun motd thing from Steel settings = { # TODO: CHANGE AFTER logging in # OR SUPPLY KEYS BEFOREHAND PasswordAuthentication = cfg.allowPasswordAuth; KbdInteractiveAuthentication = false; PermitRootLogin = "no"; AllowUsers = cfg.allowedUsers; Banner = lib.warn "add proper nicer generated banners/motd" null; }; }; };}