fix: nix-darwin do not have a programs.ssh.extraConfig

This commit is contained in:
Ryan Yin
2024-01-29 01:30:17 +08:00
parent b0f259253b
commit b8f61f2946
2 changed files with 10 additions and 6 deletions

View File

@@ -32,11 +32,6 @@
];
};
programs.ssh = {
extraConfig = vars_networking.ssh.extraConfig;
knownHosts = vars_networking.ssh.knownHosts;
};
nix.settings = {
# enable flakes globally
experimental-features = ["nix-command" "flakes"];

View File

@@ -1,9 +1,18 @@
{lib, ...}: {
{
lib,
vars_networking,
...
}: {
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
networking.firewall.enable = lib.mkDefault false;
programs.ssh = {
extraConfig = vars_networking.ssh.extraConfig;
knownHosts = vars_networking.ssh.knownHosts;
};
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;