feat: icarus

This commit is contained in:
Philipp Hochkamp 2022-11-17 09:14:15 +01:00
parent e84e2fc020
commit efb65de325
5 changed files with 88 additions and 1 deletions

View file

@ -1,6 +1,7 @@
{ config, lib, pkgs, ... }:
let
cfg = config.ragon.services.ssh;
pubkeys = import ../../data/pubkeys.nix;
in
{
options.ragon.services.ssh.enable = lib.mkEnableOption "Enables sshd";
@ -8,5 +9,6 @@ in
services.openssh.permitRootLogin = "without-password";
services.openssh.enable = true;
services.openssh.passwordAuthentication = false;
users.users.root.openssh.authorizedKeys.keys = pubkeys.ragon.user;
};
}