mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-26 03:11:32 +01:00
fix: nix-darwin do not have a programs.ssh.extraConfig
This commit is contained in:
@@ -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"];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user