This is the "proper" way to extend a default option
This commit is contained in:
parent
f4bfc6425a
commit
c4d510db2b
1 changed files with 2 additions and 5 deletions
|
|
@ -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"
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue