infra/modules/nixos/common/security.nix

17 lines
457 B
Nix
Raw Permalink Normal View History

2019-08-11 19:53:02 +01:00
{
# Make sure that the firewall is enabled, even if it's the default.
networking.firewall.enable = true;
2019-08-11 19:53:02 +01:00
# allow to access emergency shell with a password
boot.initrd.systemd.emergencyAccess = "$6$he2fblfl/H7I.kvz$WbSCMXu8ztmqfj5jG4czqvu/rkMHxufxqHgy1urzXFSN.jZB4QiW5lOjR08vk8pZTyim3TT1wFkMaNE9zZ3sc1";
services.openssh = {
hostKeys = [
2024-07-24 19:05:26 +10:00
{
path = "/etc/ssh/ssh_host_ed25519_key";
type = "ed25519";
}
];
};
2019-08-11 19:53:02 +01:00
}