dotfiles.nix/legacy/services/ssh.nix

13 lines
276 B
Nix

{ config, pkgs, lib, ... }:
let pubkey = import ./pubkey.nix;
in {
services.openssh = {
enable = true;
permitRootLogin = "yes";
passwordAuthentication = lib.mkDefault false;
};
users.users.root.openssh.authorizedKeys.keys = lib.mkDefault [ pubkey.mat ];
}