From c4d510db2b0b4930fe95f1c2014d034401c8242e Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Sat, 13 Jan 2024 13:30:14 -0600 Subject: [PATCH] This is the "proper" way to extend a default option --- common/moms-house/sshd-home.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/common/moms-house/sshd-home.nix b/common/moms-house/sshd-home.nix index d37d931..1fd8660 100644 --- a/common/moms-house/sshd-home.nix +++ b/common/moms-house/sshd-home.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ config, pkgs, lib, options, ... }: { services.openssh = { @@ -9,10 +9,7 @@ X11Forwarding = true; PasswordAuthentication = false; PermitRootLogin = "no"; - Macs = [ - "hmac-sha2-512-etm@openssh.com" - "hmac-sha2-256-etm@openssh.com" - "umac-128-etm@openssh.com" + Macs = (options.services.openssh.settings.type.getSubOptions []).Macs.default ++ [ "hmac-sha2-512" "hmac-sha2-256" ];